]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: imx6: Assert ref_clk_en after reference clock stabilizes on i.MX95
authorRichard Zhu <hongxing.zhu@nxp.com>
Mon, 18 May 2026 07:27:15 +0000 (15:27 +0800)
committerManivannan Sadhasivam <mani@kernel.org>
Tue, 9 Jun 2026 15:45:30 +0000 (21:15 +0530)
commit9dda3f83ba677b9cc2613cecd9120123000ae50f
treee62821e47bf30dd40d116d0ac5047544ea9196e0
parent0c26b1c34d12d4debfb5363cc0be6cdf68e87ba2
PCI: imx6: Assert ref_clk_en after reference clock stabilizes on i.MX95

According to the PHY Databook Common Block Signals section, the
ref_clk_en signal must remain de-asserted until the reference clock is
running at the appropriate frequency. Once the clock is stable,
ref_clk_en can be asserted. For lower power states where the reference
clock to the PHY is disabled, ref_clk_en should also be de-asserted.

Move the ref_clk_en bit manipulation into imx95_pcie_enable_ref_clk()
to ensure the reference clock stabilizes before ref_clk_en is asserted
and before the PHY reset is de-asserted. This aligns with the timing
requirements specified in the PHY documentation.

Fixes: d8574ce57d76 ("PCI: imx6: Add external reference clock input mode support")
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260518072715.3166514-3-hongxing.zhu@nxp.com
drivers/pci/controller/dwc/pci-imx6.c