]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
PCI: j721e: Fix incorrect error message in probe()
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Fri, 5 Sep 2025 21:14:34 +0000 (14:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2025 10:00:19 +0000 (12:00 +0200)
[ Upstream commit cfcd6cab2f33c24a68517f9e3131480b4000c2be ]

The probe() function prints "pm_runtime_get_sync failed" when
j721e_pcie_ctrl_init() returns an error. This is misleading since
the failure is not from pm_runtime, but from the controller init
routine. Update the error message to correctly reflect the source.

No functional changes.

Fixes: f3e25911a430 ("PCI: j721e: Add TI J721E PCIe driver")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Link: https://patch.msgid.link/20250905211436.3048282-1-alok.a.tiwari@oracle.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/controller/cadence/pci-j721e.c

index bae829ac759e128e1e016d3cb35f0388b01f36dc..eb772c18d44ed9f251e9cc3994811b04313ef4b9 100644 (file)
@@ -531,7 +531,7 @@ static int j721e_pcie_probe(struct platform_device *pdev)
 
        ret = j721e_pcie_ctrl_init(pcie);
        if (ret < 0) {
-               dev_err_probe(dev, ret, "pm_runtime_get_sync failed\n");
+               dev_err_probe(dev, ret, "j721e_pcie_ctrl_init failed\n");
                goto err_get_sync;
        }