mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 20:14:06 +02:00
PCI: tegra194: Free up Endpoint resources during remove()
Free up the resources during remove() that were acquired by the DesignWare
driver for the Endpoint mode during probe().
Fixes: bb617cbd81 ("PCI: tegra194: Clean up the exit path for Endpoint mode")
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-by: Vidya Sagar <vidyas@nvidia.com>
Link: https://patch.msgid.link/20260324190755.1094879-11-mmaddireddy@nvidia.com
This commit is contained in:
parent
c76f8eae7d
commit
8870f02f78
|
|
@ -2251,6 +2251,7 @@ static int tegra_pcie_dw_probe(struct platform_device *pdev)
|
|||
static void tegra_pcie_dw_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct tegra_pcie_dw *pcie = platform_get_drvdata(pdev);
|
||||
struct dw_pcie_ep *ep = &pcie->pci.ep;
|
||||
|
||||
if (pcie->of_data->mode == DW_PCIE_RC_TYPE) {
|
||||
if (!pcie->link_state)
|
||||
|
|
@ -2262,6 +2263,7 @@ static void tegra_pcie_dw_remove(struct platform_device *pdev)
|
|||
} else {
|
||||
disable_irq(pcie->pex_rst_irq);
|
||||
pex_ep_event_pex_rst_assert(pcie);
|
||||
dw_pcie_ep_deinit(ep);
|
||||
}
|
||||
|
||||
pm_runtime_disable(pcie->dev);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user