From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4C866145B3F; Mon, 13 Oct 2025 15:16:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760368584; cv=none; b=frIeQuKByUbvKxkct/+IXtfwv+cnJYTqqGNoZ2oGB60Bg53lXKMihtI17YvZDGyrz/S21rSzyAoTffRAhzsNBWg9GsSyQpjkxyIaet8eTjmyXIRawwPwTy5bcWun+03XUZFhX0L+lecW8L4znZdGBO3itC+deSOlqp0p982Uek0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760368584; c=relaxed/simple; bh=7fm/AAKGnJdB7BvC1CqwHlD7Z370fd0INzwxJa7Fpe4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SkH+Mbyj1JbLSzLOGhH5mVMn1uJ/UPhtGwMjPmoD/EgXUuZdv21Bkev+NRDVE5GrdC+VCx30pTubQmltbvTloqvsh9c6OLNbyAlE00zMBPCf8cmOr9WmQJtadzcNIWHSsLreZuERDLWGtnWGICj3ty73xUr++wabYUjZxPikycs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ix1dUIpx; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ix1dUIpx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CADF4C4CEE7; Mon, 13 Oct 2025 15:16:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760368584; bh=7fm/AAKGnJdB7BvC1CqwHlD7Z370fd0INzwxJa7Fpe4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ix1dUIpxks/C/FjsX80tnKMtvrT3o0w9hE7rCKNTmGl4hMHGizzjBmrT3sMym5i9l XEcJ4bOdQqnOtehWhnmg9KtE9i/9styJwAcciUi7dvaJM3qbOdpBNCqncrAdpKnkNu 5as5hBMHB0ItB53x8WDf1WQ6LuaJG9rBF4n9stzA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Nagarjuna Kristam , Niklas Cassel , Manivannan Sadhasivam , Sasha Levin Subject: [PATCH 6.12 179/262] PCI: tegra194: Fix duplicate PLL disable in pex_ep_event_pex_rst_assert() Date: Mon, 13 Oct 2025 16:45:21 +0200 Message-ID: <20251013144332.575249580@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251013144326.116493600@linuxfoundation.org> References: <20251013144326.116493600@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.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nagarjuna Kristam [ Upstream commit 4f152338e384a3a47dd61909e1457539fa93f5a4 ] During PERST# assertion tegra_pcie_bpmp_set_pll_state() is currently called twice. pex_ep_event_pex_rst_assert() should do the opposite of pex_ep_event_pex_rst_deassert(), so it is obvious that the duplicate tegra_pcie_bpmp_set_pll_state() is a mistake, and that the duplicate tegra_pcie_bpmp_set_pll_state() call should instead be a call to tegra_pcie_bpmp_set_ctrl_state(). With this, the uninitialization sequence also matches that of tegra_pcie_unconfig_controller(). Fixes: a54e19073718 ("PCI: tegra194: Add Tegra234 PCIe support") Signed-off-by: Nagarjuna Kristam [cassel: improve commit log] Signed-off-by: Niklas Cassel Link: https://patch.msgid.link/20250911093021.1454385-2-cassel@kernel.org [mani: added Fixes tag] Signed-off-by: Manivannan Sadhasivam Signed-off-by: Sasha Levin --- drivers/pci/controller/dwc/pcie-tegra194.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/controller/dwc/pcie-tegra194.c index ced3b7e7bdade..815599ef72db8 100644 --- a/drivers/pci/controller/dwc/pcie-tegra194.c +++ b/drivers/pci/controller/dwc/pcie-tegra194.c @@ -1721,9 +1721,9 @@ static void pex_ep_event_pex_rst_assert(struct tegra_pcie_dw *pcie) ret); } - ret = tegra_pcie_bpmp_set_pll_state(pcie, false); + ret = tegra_pcie_bpmp_set_ctrl_state(pcie, false); if (ret) - dev_err(pcie->dev, "Failed to turn off UPHY: %d\n", ret); + dev_err(pcie->dev, "Failed to disable controller: %d\n", ret); pcie->ep_state = EP_STATE_DISABLED; dev_dbg(pcie->dev, "Uninitialization of endpoint is completed\n"); -- 2.51.0