Skip to content

Commit f2ec472

Browse files
Rafael Beimsvinodkoul
authored andcommitted
phy: freescale: imx8m-pcie: assert phy reset during power on
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>
1 parent e07dea3 commit f2ec472

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/phy/freescale/phy-fsl-imx8m-pcie.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ static int imx8_pcie_phy_power_on(struct phy *phy)
8989
writel(imx8_phy->tx_deemph_gen2,
9090
imx8_phy->base + PCIE_PHY_TRSV_REG6);
9191
break;
92-
case IMX8MP: /* Do nothing. */
92+
case IMX8MP:
93+
reset_control_assert(imx8_phy->reset);
9394
break;
9495
}
9596

0 commit comments

Comments
 (0)