Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794048773; b=ze22ZVVnPX8N1L/l05lnN5Hn3BgtNE+ZofuXozhjM+EsJvsmvQVMJNmliZ/cSXsBF/pB sPdeuVTbgoDq99U2qq/aOcyoyW+RPUjpZf/hSMXWEW3W7G9S+7yJdoTCtBRppPCI3N8Ce MgdztqJRJ5ko0vOmnBPguUfsHLBZeXVOdS076Rc6g1/gAIHQ/T/8U+6HKiPN80acNjAoC t2rlFmmIVBvib7P8oZJ0lDlK9wXo0jiN7fjnqRrTFP6C+CToy+dkl1JkzbymhhlF7HZ0a jbUMoo96NC48YHiXdVhEUXLQTavoNzMqW0HArlb+L5JW6pMZNlzT0TJt2gL5mBNqlvg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794048773; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=Yty/pMkOpM40ACgF6g2sY0ALy2x2q8xgT6QniG7o6BU=; b=NcFarQh223SmUS841kHCB5H0j1/vBinKeqlj90a6cQXZWh47L+imQt7uKWDqPJuIug9O RjnCt9mbCeydsohp3lQlvj7SGh3N7l78UO2y5SANdL+bZlH4Nsgh85KcRtss9H7OthhmF ZvHcUQS8Yv3nJWZT3bje8sRzeMCPYR+As5Z6I7IAUdst6913hhHqceJ/7X5XirjIFjiLM zJK/i1/jbOmi1dH462P8/3hwNMQv6Vb6z3j8chC309wBkuXWaMPOBkkgvw+zPaqXA9nhP zrSfCuXO7li0cld/1SDBhkE95aDWWlNETbl+10f1zmlblg+gNucT98MhZbxsbwpoUZg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Fo1JaELG; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D87DA606A326 for ; Sat, 7 Nov 2026 10:52:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Fo1JaELG Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3BB991F008A1; Sat, 7 Nov 2026 10:52:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794048772; bh=Yty/pMkOpM40ACgF6g2sY0ALy2x2q8xgT6QniG7o6BU=; h=From:To:Cc:Subject:Date; b=Fo1JaELGdSkQRrCthjxrTKMsTdsyafVhFTUgY7LCSrje4aqgsTztxCFtrZrrZ0MHd CLRziu5X8A4KB0dwWfT7vqO3gt1cjxajIJ7tHs6GFifmTzSw5g2k6Qz0QCK41IWaRq EuVL4b4boE5rmzunpuVQ2iw61RsQTRxQu9L0fbrdkhxgB/i765VrI7r84k0BMxbU2A UDgrG5fcYPAZrcoFLB6VE51vQ2JDUxusi/1BdoGlDKWPJ2zJLMKcc0umuEmAVhKyGC Kg5sltScPu6B3H7D3b8KDQzBvWRheqz9bQb7Txsjrju4jkX1Fuk4k0/5bs2Y5sFvnQ YNroZaZ6ruW0w== From: Sasha Levin To: lgs201920130244@gmail.com, manivannan.sadhasivam@oss.qualcomm.com, bhelgaas@google.com Cc: stable@vger.kernel.org Subject: FAILED: patch "[PATCH] PCI: qcom-ep: Deinitialize endpoint on remove" failed to apply to 6.1-stable tree Date: Sat, 7 Nov 2026 05:52:51 -0500 Message-ID: <20261107055250-failed-6.1-ed1d71e41c7b@kernel.org> X-Mailer: git-send-email 2.53.0 X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x ed1d71e41c7b2e755e0ef8e9af9cab9b6b185c4b # git commit -s git send-email --to '' --in-reply-to '20261107055250-failed-6.1-ed1d71e41c7b@kernel.org' --subject-prefix 'PATCH 6.1.y' 'HEAD^..' Thanks, Sasha ------------------ original commit in Linus's tree ------------------ From ed1d71e41c7b2e755e0ef8e9af9cab9b6b185c4b Mon Sep 17 00:00:00 2001 From: Guangshuo Li Date: Wed, 16 Sep 2026 17:01:26 +0800 Subject: [PATCH] PCI: qcom-ep: Deinitialize endpoint on remove qcom_pcie_ep_probe() initializes the DesignWare PCIe endpoint with dw_pcie_ep_init(). The probe failure paths call dw_pcie_ep_deinit() to release the corresponding endpoint resources, but the remove path does not perform the matching teardown after a successful probe. As a result, resources initialized by the DesignWare endpoint core can remain allocated when the endpoint controller is removed. Notify endpoint functions about EPC deinitialization and call dw_pcie_ep_deinit() before disabling the controller resources. Keep the existing early return when the link is already disabled since Qualcomm endpoint controllers depend on the host refclk for hardware cleanup. This issue was found by manual code inspection. Fixes: f55fee56a631 ("PCI: qcom-ep: Add Qualcomm PCIe Endpoint controller driver") Signed-off-by: Guangshuo Li Signed-off-by: Manivannan Sadhasivam Signed-off-by: Bjorn Helgaas Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20260916090126.2963064-1-lgs201920130244@gmail.com --- drivers/pci/controller/dwc/pcie-qcom-ep.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pci/controller/dwc/pcie-qcom-ep.c b/drivers/pci/controller/dwc/pcie-qcom-ep.c index 56184e6ca6e69..28949386b0e87 100644 --- a/drivers/pci/controller/dwc/pcie-qcom-ep.c +++ b/drivers/pci/controller/dwc/pcie-qcom-ep.c @@ -944,6 +944,8 @@ static void qcom_pcie_ep_remove(struct platform_device *pdev) if (pcie_ep->link_status == QCOM_PCIE_EP_LINK_DISABLED) return; + pci_epc_deinit_notify(pcie_ep->pci.ep.epc); + dw_pcie_ep_deinit(&pcie_ep->pci.ep); qcom_pcie_disable_resources(pcie_ep); } -- 2.53.0