]> git.ipfire.org Git - thirdparty/linux.git/commit
PCI: imx6: Fix IMX6SX_GPR12_PCIE_TEST_POWERDOWN handling
authorRichard Zhu <hongxing.zhu@nxp.com>
Thu, 19 Mar 2026 09:08:44 +0000 (17:08 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 18 May 2026 22:52:05 +0000 (17:52 -0500)
commitaad953fb4eed0df5486cd54ccad80ac197678e01
treec4e08241878f638f45b4239bcc956603b9b4ae2f
parent254f49634ee16a731174d2ae34bc50bd5f45e731
PCI: imx6: Fix IMX6SX_GPR12_PCIE_TEST_POWERDOWN handling

The IMX6SX_GPR12_PCIE_TEST_POWERDOWN bit does not control the PCIe
reference clock on i.MX6SX. Instead, it is part of i.MX6SX PCIe core
reset sequence.

Move the IMX6SX_GPR12_PCIE_TEST_POWERDOWN assertion/deassertion into
the core reset functions to properly reflect its purpose. Remove the
.enable_ref_clk() callback for i.MX6SX since it was incorrectly
manipulating this bit.

Fixes: e3c06cd063d6 ("PCI: imx6: Add initial imx6sx support")
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260319090844.444987-1-hongxing.zhu@nxp.com
drivers/pci/controller/dwc/pci-imx6.c