From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39D2F2D879E; Wed, 20 May 2026 17:30:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779298219; cv=none; b=KACwlE8eLANi+2Isi4AO3O3zSW0+z2YYdSJ+HQntjdsY17eKMBL8HqGPMlD41Oh0wnJlSnsZM6+KC0iPX1LSFHxrTJ62f9JWR9vfumVkKFfaKc9NRXx21rSw9Nhu3vIE9mys/KQuntT1YjZYNV1S3zLUuA6SePWVI5NkuUOqt44= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779298219; c=relaxed/simple; bh=PrUn9xm4/PvtA1+f/prF9DCsLLbzBnXmC1uk3Wm9Kdk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WcelpjNv+2aBUOaHcKbboMH07E8hFa3aBgI8NPwUAqHPGj7pDYsEO8QIt2/uighBEMiIaKPcOiORlsiJ8yot68NqQilAznkJ6kSZbwWkg9sf4gsZKLDObUlIvqzrE+2quATYurs2JVgFv25uFF4gN/9S1s7MZGEBqNifUuFSmik= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=K5YDueh9; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="K5YDueh9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CD781F000E9; Wed, 20 May 2026 17:30:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779298217; bh=Tnf8USmau1Gv0JbZJKBx7BgHfaRyT8vK7qc2ulNxeGk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=K5YDueh94CVR1wVJyeqoptX7furcBDi3Y5cW+lamtH1AOTmae942G5HRpHYXibRdK e5NIPbIGMcRHBrv17d4C+5toRVlzq1AndAGVSCofX9/tswdpfq++l/BDdrJlV9eg+p 8vGxoFH+Cypc2CkOWF/QYhpYDR/59VwDaPKRFFSo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Vidya Sagar , Manikanta Maddireddy , Manivannan Sadhasivam , Bjorn Helgaas , Jon Hunter , Sasha Levin Subject: [PATCH 6.18 327/957] PCI: tegra194: Free up Endpoint resources during remove() Date: Wed, 20 May 2026 18:13:30 +0200 Message-ID: <20260520162141.621648376@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162134.554764788@linuxfoundation.org> References: <20260520162134.554764788@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vidya Sagar [ Upstream commit 8870f02f7868209eb9bdc5dc53540a6262cf9227 ] Free up the resources during remove() that were acquired by the DesignWare driver for the Endpoint mode during probe(). Fixes: bb617cbd8151 ("PCI: tegra194: Clean up the exit path for Endpoint mode") Signed-off-by: Vidya Sagar Signed-off-by: Manikanta Maddireddy Signed-off-by: Manivannan Sadhasivam Signed-off-by: Bjorn Helgaas Tested-by: Jon Hunter Reviewed-by: Jon Hunter Reviewed-by: Vidya Sagar Link: https://patch.msgid.link/20260324190755.1094879-11-mmaddireddy@nvidia.com Signed-off-by: Sasha Levin --- drivers/pci/controller/dwc/pcie-tegra194.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/controller/dwc/pcie-tegra194.c index f4784945c04bb..eb6fecf2e6f42 100644 --- a/drivers/pci/controller/dwc/pcie-tegra194.c +++ b/drivers/pci/controller/dwc/pcie-tegra194.c @@ -2285,6 +2285,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) @@ -2296,6 +2297,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); -- 2.53.0