Skip to content

Commit de3ccab

Browse files
Vidya Sagargregkh
authored andcommitted
PCI: tegra194: Free up Endpoint resources during remove()
[ Upstream commit 8870f02 ] Free up the resources during remove() that were acquired by the DesignWare driver for the Endpoint mode during probe(). Fixes: bb617cb ("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 Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 03a4034 commit de3ccab

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/pci/controller/dwc/pcie-tegra194.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2282,6 +2282,7 @@ static int tegra_pcie_dw_probe(struct platform_device *pdev)
22822282
static void tegra_pcie_dw_remove(struct platform_device *pdev)
22832283
{
22842284
struct tegra_pcie_dw *pcie = platform_get_drvdata(pdev);
2285+
struct dw_pcie_ep *ep = &pcie->pci.ep;
22852286

22862287
if (pcie->of_data->mode == DW_PCIE_RC_TYPE) {
22872288
if (!pcie->link_state)
@@ -2293,6 +2294,7 @@ static void tegra_pcie_dw_remove(struct platform_device *pdev)
22932294
} else {
22942295
disable_irq(pcie->pex_rst_irq);
22952296
pex_ep_event_pex_rst_assert(pcie);
2297+
dw_pcie_ep_deinit(ep);
22962298
}
22972299

22982300
pm_runtime_disable(pcie->dev);

0 commit comments

Comments
 (0)