Skip to content

Commit 89ec9bb

Browse files
DragonBlueptsbogend
authored andcommitted
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 <[email protected]> Reviewed-by: Sergio Paracuellos <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 9f9a035 commit 89ec9bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/mips/pci/pci-mt7620.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ static int mt7620_pci_probe(struct platform_device *pdev)
327327
rt_sysc_m32(RALINK_PCIE0_CLK_EN, 0, RALINK_CLKCFG1);
328328
if (ralink_soc == MT762X_SOC_MT7620A)
329329
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");
331331
return -1;
332332
}
333333

@@ -370,7 +370,7 @@ int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
370370
dev->bus->number, slot);
371371
return 0;
372372
}
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",
374374
dev->bus->number, slot, irq);
375375

376376
/* configure the cache line size to 0x14 */

0 commit comments

Comments
 (0)