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 8241ADF59; Wed, 20 May 2026 18:36:04 +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=1779302165; cv=none; b=gJAAAGLAc1t9LW1DXhnLU2Auwgko6ZWoXU3g+3EdIHhAtSU5FDEVwxx2k29nhoM6PJ9ocRIhbxhZszvNdl3WfFvgfh1YC6AKq6+7LnEYiEmT39M8AlpfzYxt9RythgZia1ynfc+Sb9TsOrZKE0E7eZbL7F/klsffkCYCgj0M5EI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779302165; c=relaxed/simple; bh=n6mnLbzpUF73stQzdRcpTqTlJWDIsnW3jkgQlWnSnqA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VxlqFGbMUrX3kltZhJWWgrNduDRRYisTzE0Fv48xR5I14LGWpvHMGCGn9rFhZpB1idHEpbh2XTEpyFkAxzr+wpakjUTKWitAji8GIS66xbtxkEVLiOI3tdyhTnMcQIUzeDmH0p/tY/HCSE32GPZtkHycXv6fQCnfToyuB3v19yw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iShSl8g3; 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="iShSl8g3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED4971F000E9; Wed, 20 May 2026 18:36:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779302164; bh=HcLTReUfxXLYHZ6vguH1/EbnHEwLRP4ke9Jc8gBxly0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=iShSl8g3TI1NERi6rFkufczwJSXlDE3wS9BR9xDobvWy8YH1KW6vNrf9osz3QL7wU hCDnrdLwhuqL3CB/HjddG902Gqp7lOD5MWoJwAKrMyEssnrImngZZA7r/yz459FZxM yRO51vB72TmRHbYQznEY1EsdooV7JUx/jbe+6Q+4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Manikanta Maddireddy , Manivannan Sadhasivam , Bjorn Helgaas , Jon Hunter , Vidya Sagar , Sasha Levin Subject: [PATCH 6.6 161/508] PCI: tegra194: Disable PERST# IRQ only in Endpoint mode Date: Wed, 20 May 2026 18:19:44 +0200 Message-ID: <20260520162102.127578463@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162058.573354582@linuxfoundation.org> References: <20260520162058.573354582@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Manikanta Maddireddy [ Upstream commit 40658a31b6e134169c648041efc84944c4c71dcd ] The PERST# GPIO interrupt is only registered when the controller is operating in Endpoint mode. In Root Port mode, the PERST# GPIO is configured as an output to control downstream devices, and no interrupt is registered for it. Currently, tegra_pcie_dw_stop_link() unconditionally calls disable_irq() on pex_rst_irq, which causes issues in Root Port mode where this IRQ is not registered. Fix this by only disabling the PERST# IRQ when operating in Endpoint mode, where the interrupt is actually registered and used to detect PERST# assertion/deassertion from the host. Fixes: c57247f940e8 ("PCI: tegra: Add support for PCIe endpoint mode in Tegra194") 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-6-mmaddireddy@nvidia.com Signed-off-by: Sasha Levin --- drivers/pci/controller/dwc/pcie-tegra194.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/controller/dwc/pcie-tegra194.c index 23c7c6e691b26..ed0d12ab579d8 100644 --- a/drivers/pci/controller/dwc/pcie-tegra194.c +++ b/drivers/pci/controller/dwc/pcie-tegra194.c @@ -1055,7 +1055,8 @@ static void tegra_pcie_dw_stop_link(struct dw_pcie *pci) { struct tegra_pcie_dw *pcie = to_tegra_pcie(pci); - disable_irq(pcie->pex_rst_irq); + if (pcie->of_data->mode == DW_PCIE_EP_TYPE) + disable_irq(pcie->pex_rst_irq); } static const struct dw_pcie_ops tegra_dw_pcie_ops = { -- 2.53.0