010-v6.5-02-mips-pci-mt7620-use-dev_info-to-log-PCIe-device-dete.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From 89ec9bbe60b61cc6ae3eddd6d4f43e128f8a88de Mon Sep 17 00:00:00 2001
  2. From: Shiji Yang <[email protected]>
  3. Date: Tue, 20 Jun 2023 18:43:23 +0800
  4. Subject: [PATCH 2/2] mips: pci-mt7620: use dev_info() to log PCIe device
  5. detection result
  6. Usually, We only need to print the error log when there is a PCIe card but
  7. initialization fails. Whether the driver finds the PCIe card or not is the
  8. expected behavior. So it's better to log these information with dev_info().
  9. Tested on MT7628AN router Motorola MWR03.
  10. Signed-off-by: Shiji Yang <[email protected]>
  11. Reviewed-by: Sergio Paracuellos <[email protected]>
  12. Signed-off-by: Thomas Bogendoerfer <[email protected]>
  13. ---
  14. arch/mips/pci/pci-mt7620.c | 4 ++--
  15. 1 file changed, 2 insertions(+), 2 deletions(-)
  16. --- a/arch/mips/pci/pci-mt7620.c
  17. +++ b/arch/mips/pci/pci-mt7620.c
  18. @@ -331,7 +331,7 @@ static int mt7620_pci_probe(struct platf
  19. rt_sysc_m32(RALINK_PCIE0_CLK_EN, 0, RALINK_CLKCFG1);
  20. if (ralink_soc == MT762X_SOC_MT7620A)
  21. rt_sysc_m32(LC_CKDRVPD, PDRV_SW_SET, PPLL_DRV);
  22. - dev_err(&pdev->dev, "PCIE0 no card, disable it(RST&CLK)\n");
  23. + dev_info(&pdev->dev, "PCIE0 no card, disable it(RST&CLK)\n");
  24. return -1;
  25. }
  26. @@ -374,7 +374,7 @@ int pcibios_map_irq(const struct pci_dev
  27. dev->bus->number, slot);
  28. return 0;
  29. }
  30. - dev_err(&dev->dev, "card - bus=0x%x, slot = 0x%x irq=%d\n",
  31. + dev_info(&dev->dev, "card - bus=0x%x, slot = 0x%x irq=%d\n",
  32. dev->bus->number, slot, irq);
  33. /* configure the cache line size to 0x14 */