PCI: Change CLS info in pci_apply_final_quirks to debug level
PATCH 1/1 PCI: Change CLS info in pci_apply_final_quirks to debug level
CLS is relevant only for devices using MWI, in addition not really helpful messages like the following are printed:
PCI: CLS 0 bytes, default 64
Therefore change CLS info to debug level.
Signed-off-by Heiner Kallweit <[email protected]>
--- drivers/pci/quirks.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)
drivers/pci/quirks.c +5 -8
@@ -157,9 +157,6 @@ static int __init pci_apply_final_quirks(void)u8 cls =0 ;u8 tmp; -if (pci_cache_line_size) -pr_info ("PCI: CLS %u bytes\n" , pci_cache_line_size <<2 ); - pci_apply_fixup_final_quirks = true;for_each_pci_dev (dev) {pci_fixup_device (pci_fixup_final, dev);
@@ -182,11 +179,11 @@ static int __init pci_apply_final_quirks(void) } } -if (!pci_cache_line_size) { -pr_info ("PCI: CLS %u bytes, default %u\n" , cls <<2 , - pci_dfl_cache_line_size <<2 ); - pci_cache_line_size = cls ? cls : pci_dfl_cache_line_size; - } +if (!pci_cache_line_size) + pci_cache_line_size = cls ?: pci_dfl_cache_line_size; + +pr_debug ("PCI: CLS %u bytes, default %u\n" , pci_cache_line_size <<2 , + pci_dfl_cache_line_size <<2 );return 0 ; }
Signature · 1 line
2.29.2