Patch "PCI: tegra: Fix reporting GPIO error value" has been added to the 5.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    PCI: tegra: Fix reporting GPIO error value

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     pci-tegra-fix-reporting-gpio-error-value.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit b2de3cb2dcf33b2059328f6f38afb5329b93a9ca
Author: Pali Rohár <pali@xxxxxxxxxx>
Date:   Tue Apr 14 12:25:12 2020 +0200

    PCI: tegra: Fix reporting GPIO error value
    
    [ Upstream commit 63605f1cfcc56bcb25c48bbee75a679d85ba7675 ]
    
    Error code is stored in rp->reset_gpio and not in err variable.
    
    Link: https://lore.kernel.org/r/20200414102512.27506-1-pali@xxxxxxxxxx
    Signed-off-by: Pali Rohár <pali@xxxxxxxxxx>
    Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@xxxxxxx>
    Acked-by: Thierry Reding <treding@xxxxxxxxxx>
    Acked-by: Rob Herring <robh@xxxxxxxxxx>
    Stable-dep-of: eff21f5da308 ("PCI: tegra: Fix OF node reference leak")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/pci/controller/pci-tegra.c b/drivers/pci/controller/pci-tegra.c
index 99d505a85067b..64921c63874fa 100644
--- a/drivers/pci/controller/pci-tegra.c
+++ b/drivers/pci/controller/pci-tegra.c
@@ -2289,8 +2289,8 @@ static int tegra_pcie_parse_dt(struct tegra_pcie *pcie)
 			if (PTR_ERR(rp->reset_gpio) == -ENOENT) {
 				rp->reset_gpio = NULL;
 			} else {
-				dev_err(dev, "failed to get reset GPIO: %d\n",
-					err);
+				dev_err(dev, "failed to get reset GPIO: %ld\n",
+					PTR_ERR(rp->reset_gpio));
 				return PTR_ERR(rp->reset_gpio);
 			}
 		}




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux