linux/drivers/phy/freescale
Stefan Eichenberger beb9a5cb7a phy: freescale: imx8m-pcie: assert phy reset and perst in power off
commit aecb63e88c upstream.

Ensure the PHY reset and perst is asserted during power-off to
guarantee it is in a reset state upon repeated power-on calls. This
resolves an issue where the PHY may not properly initialize during
subsequent power-on cycles. Power-on will deassert the reset at the
appropriate time after tuning the PHY parameters.

During suspend/resume cycles, we observed that the PHY PLL failed to
lock during resume when the CPU temperature increased from 65C to 75C.
The observed errors were:
  phy phy-32f00000.pcie-phy.3: phy poweron failed --> -110
  imx6q-pcie 33800000.pcie: waiting for PHY ready timeout!
  imx6q-pcie 33800000.pcie: PM: dpm_run_callback(): genpd_resume_noirq+0x0/0x80 returns -110
  imx6q-pcie 33800000.pcie: PM: failed to resume noirq: error -110

This resulted in a complete CPU freeze, which is resolved by ensuring
the PHY is in reset during power-on, thus preventing PHY PLL failures.

Cc: stable@vger.kernel.org
Fixes: 1aa97b0022 ("phy: freescale: pcie: Initialize the imx8 pcie standalone phy driver")
Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250305144355.20364-3-eichest@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-04-20 10:15:58 +02:00
..
Kconfig phy: freescale: imx8qm-hsio: Add i.MX8QM HSIO PHY driver support 2024-06-15 17:52:01 +05:30
Makefile phy: freescale: imx8qm-hsio: Add i.MX8QM HSIO PHY driver support 2024-06-15 17:52:01 +05:30
phy-fsl-imx8-mipi-dphy.c phy: freescale: phy-fsl-imx8-mipi-dphy: Fix alias name to use dashes 2024-02-07 11:19:40 +01:00
phy-fsl-imx8m-pcie.c phy: freescale: imx8m-pcie: assert phy reset and perst in power off 2025-04-20 10:15:58 +02:00
phy-fsl-imx8mq-usb.c phy: fsl-imx8mq-usb: fix tuning parameter name 2024-08-04 22:12:26 +05:30
phy-fsl-imx8qm-hsio.c phy: freescale: imx8qm-hsio: Include bitfield.h for FIELD_PREP 2024-06-20 21:56:11 +05:30
phy-fsl-imx8qm-lvds-phy.c phy: constify of_phandle_args in xlate 2024-02-23 17:43:14 +05:30
phy-fsl-lynx-28g.c phy: constify of_phandle_args in xlate 2024-02-23 17:43:14 +05:30
phy-fsl-samsung-hdmi.c phy: freescale: fsl-samsung-hdmi: Convert to platform remove callback returning void 2024-04-12 15:18:42 +05:30