Patch "PCI: tegra194: Fix PM error handling in tegra_pcie_config_ep()" has been added to the 5.18-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: tegra194: Fix PM error handling in tegra_pcie_config_ep()

to the 5.18-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-tegra194-fix-pm-error-handling-in-tegra_pcie_con.patch
and it can be found in the queue-5.18 subdirectory.

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



commit 50517f684e98466f6d08486d812d1e365745c43f
Author: Miaoqian Lin <linmq006@xxxxxxxxx>
Date:   Thu Jun 2 07:19:08 2022 +0400

    PCI: tegra194: Fix PM error handling in tegra_pcie_config_ep()
    
    [ Upstream commit e8fbd344a5ea62663554b8546b6bf9f88b93785a ]
    
    pm_runtime_enable() will increase power disable depth.  If
    dw_pcie_ep_init() fails, we should use pm_runtime_disable() to balance it
    with pm_runtime_enable().
    
    Add missing pm_runtime_disable() for tegra_pcie_config_ep().
    
    Fixes: c57247f940e8 ("PCI: tegra: Add support for PCIe endpoint mode in Tegra194")
    Link: https://lore.kernel.org/r/20220602031910.55859-1-linmq006@xxxxxxxxx
    Signed-off-by: Miaoqian Lin <linmq006@xxxxxxxxx>
    Signed-off-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
    Reviewed-by: Vidya Sagar <vidyas@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/controller/dwc/pcie-tegra194.c
index b1b5f836a806..0888c3726414 100644
--- a/drivers/pci/controller/dwc/pcie-tegra194.c
+++ b/drivers/pci/controller/dwc/pcie-tegra194.c
@@ -1951,6 +1951,7 @@ static int tegra_pcie_config_ep(struct tegra194_pcie *pcie,
 	if (ret) {
 		dev_err(dev, "Failed to initialize DWC Endpoint subsystem: %d\n",
 			ret);
+		pm_runtime_disable(dev);
 		return ret;
 	}
 



[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