]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
iwlwifi: pcie: reduce unwanted noise in the logs
authorLuca Coelho <luciano.coelho@intel.com>
Tue, 9 May 2017 20:47:18 +0000 (23:47 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 23 Jun 2017 09:20:39 +0000 (12:20 +0300)
The driver prints "L1 Enabled - LTR Enabled" all the time as dev_info,
which is just useless noise in most cases.  Convert this to
IWL_DEBUG_POWER() so we don't pollute the log unnecessarily but still
can get this info on demand.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/trans.c

index 106e822308c767885c8d60238eec54d84260be29..233b6734c237636fcb9fc5f81fd1d7d89d4cf3c5 100644 (file)
@@ -224,9 +224,9 @@ void iwl_pcie_apm_config(struct iwl_trans *trans)
 
        pcie_capability_read_word(trans_pcie->pci_dev, PCI_EXP_DEVCTL2, &cap);
        trans->ltr_enabled = cap & PCI_EXP_DEVCTL2_LTR_EN;
-       dev_info(trans->dev, "L1 %sabled - LTR %sabled\n",
-                (lctl & PCI_EXP_LNKCTL_ASPM_L1) ? "En" : "Dis",
-                trans->ltr_enabled ? "En" : "Dis");
+       IWL_DEBUG_POWER(trans, "L1 %sabled - LTR %sabled\n",
+                       (lctl & PCI_EXP_LNKCTL_ASPM_L1) ? "En" : "Dis",
+                       trans->ltr_enabled ? "En" : "Dis");
 }
 
 /*