Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mips: pci-mt7620: use dev_info() to log PCIe device detection result

Usually, We only need to print the error log when there is a PCIe card but
initialization fails. Whether the driver finds the PCIe card or not is the
expected behavior. So it's better to log these information with dev_info().

Tested on MT7628AN router Motorola MWR03.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Shiji Yang and committed by
Thomas Bogendoerfer
89ec9bbe 9f9a035e

+2 -2
+2 -2
arch/mips/pci/pci-mt7620.c
··· 327 327 rt_sysc_m32(RALINK_PCIE0_CLK_EN, 0, RALINK_CLKCFG1); 328 328 if (ralink_soc == MT762X_SOC_MT7620A) 329 329 rt_sysc_m32(LC_CKDRVPD, PDRV_SW_SET, PPLL_DRV); 330 - dev_err(&pdev->dev, "PCIE0 no card, disable it(RST&CLK)\n"); 330 + dev_info(&pdev->dev, "PCIE0 no card, disable it(RST&CLK)\n"); 331 331 return -1; 332 332 } 333 333 ··· 370 370 dev->bus->number, slot); 371 371 return 0; 372 372 } 373 - dev_err(&dev->dev, "card - bus=0x%x, slot = 0x%x irq=%d\n", 373 + dev_info(&dev->dev, "card - bus=0x%x, slot = 0x%x irq=%d\n", 374 374 dev->bus->number, slot, irq); 375 375 376 376 /* configure the cache line size to 0x14 */