]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: tegra194: Fix duplicate PLL disable in pex_ep_event_pex_rst_assert()
authorNagarjuna Kristam <nkristam@nvidia.com>
Thu, 11 Sep 2025 09:30:22 +0000 (11:30 +0200)
committerManivannan Sadhasivam <mani@kernel.org>
Mon, 22 Sep 2025 07:03:35 +0000 (12:33 +0530)
commit4f152338e384a3a47dd61909e1457539fa93f5a4
treeb3d35b1bb7b96a2cd700855c0a1d23b4abff50c5
parente1a8805e5d263453ad76a4f50ab3b1c18ea07560
PCI: tegra194: Fix duplicate PLL disable in pex_ep_event_pex_rst_assert()

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 <nkristam@nvidia.com>
[cassel: improve commit log]
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Link: https://patch.msgid.link/20250911093021.1454385-2-cassel@kernel.org
[mani: added Fixes tag]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
drivers/pci/controller/dwc/pcie-tegra194.c