PCI: dwc: Use dev_info for PCIe link down event logging
authorVidya Sagar <vidyas@nvidia.com>
Tue, 13 Sep 2022 10:12:37 +0000 (15:42 +0530)
committerLorenzo Pieralisi <lpieralisi@kernel.org>
Thu, 10 Nov 2022 15:36:34 +0000 (16:36 +0100)
Some of the platforms (like Tegra194 and Tegra234) have open slots and
not having an endpoint connected to the slot is not an error.
So, changing the macro from dev_err to dev_info to log the event.

Link: https://lore.kernel.org/r/20220913101237.4337-1-vidyas@nvidia.com
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/controller/dwc/pcie-designware.c

index 9e4d96e..432aead 100644 (file)
@@ -448,7 +448,7 @@ int dw_pcie_wait_for_link(struct dw_pcie *pci)
        }
 
        if (retries >= LINK_WAIT_MAX_RETRIES) {
-               dev_err(pci->dev, "Phy link never came up\n");
+               dev_info(pci->dev, "Phy link never came up\n");
                return -ETIMEDOUT;
        }