]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: freescale: imx8m-pcie: assert phy reset during power on
authorRafael Beims <rafael.beims@toradex.com>
Tue, 23 Dec 2025 15:02:54 +0000 (12:02 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 10:18:44 +0000 (11:18 +0100)
commit24d759976a4a7745898904cfbef0a3a3a9ff4bf6
tree1f7b9db8ccd7795506be3ab3a5a8df4a0c139c43
parent66fcfceee25490567b7d548718fc47b8d449a5fa
phy: freescale: imx8m-pcie: assert phy reset during power on

commit f2ec4723defbc66a50e0abafa830ae9f8bceb0d7 upstream.

After U-Boot initializes PCIe with "pcie enum", Linux fails to detect
an NVMe disk on some boot cycles with:

  phy phy-32f00000.pcie-phy.0: phy poweron failed --> -110

Discussion with NXP identified that the iMX8MP PCIe PHY PLL may fail to
lock when re-initialized without a reset cycle [1].

The issue reproduces on 7% of tested hardware platforms, with a 30-40%
failure rate per affected device across boot cycles.

Insert a reset cycle in the power-on routine to ensure the PHY is
initialized from a known state.

[1] https://community.nxp.com/t5/i-MX-Processors/iMX8MP-PCIe-initialization-in-U-Boot/m-p/2248437#M242401

Signed-off-by: Rafael Beims <rafael.beims@toradex.com>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20251223150254.1075221-1-rafael@beims.me
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/phy/freescale/phy-fsl-imx8m-pcie.c