]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: iwlwifi: remove redundant prints
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Mon, 27 May 2024 16:06:13 +0000 (19:06 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 29 May 2024 08:34:03 +0000 (10:34 +0200)
Upon start, the different opmodes are currently printing:
1. HW rev, which is already print by iwlwifi
2. The HW name (e.g. "Intel(R) Wi-Fi 7 BE201 320MHz")

cleanup things such as the hw rev won't be printed again, the HW name will
be printed by iwlwifi instead of each opmode.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Link: https://msgid.link/20240527190228.5c589c7abed0.I3590c4ee0ee99d1b207852c32d25d326afb327dd@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
drivers/net/wireless/intel/iwlwifi/pcie/drv.c

index 516decc647dda71f022e7239b77add4015ddd217..ed9487062093ddeddd5e7c667859744b577d2953 100644 (file)
@@ -1450,9 +1450,6 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg,
                goto out_free;
        }
 
-       IWL_INFO(mvm, "Detected %s, REV=0x%X\n",
-                mvm->trans->name, mvm->trans->hw_rev);
-
        if (iwlwifi_mod_params.nvm_file)
                mvm->nvm_file_name = iwlwifi_mod_params.nvm_file;
        else
index fed2754be68029fd21afa6442759e54ea8f2cc25..92e48cff49de2e803b7cde46b7a89cff5f61308e 100644 (file)
@@ -1476,6 +1476,8 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        if (!iwl_trans->name)
                iwl_trans->name = iwl_trans->cfg->name;
 
+       IWL_INFO(iwl_trans, "Detected %s\n", iwl_trans->name);
+
        if (iwl_trans->trans_cfg->mq_rx_supported) {
                if (WARN_ON(!iwl_trans->cfg->num_rbds)) {
                        ret = -EINVAL;