linux/drivers/phy/freescale
Vladimir Oltean a258d843a3 phy: lynx-28g: skip CDR lock workaround for lanes disabled in the device tree
The blamed commit introduced support for specifying individual lanes as
OF nodes in the device, and these can have status = "disabled".

When that happens, for_each_available_child_of_node() skips them and
lynx_28g_probe_lane() -> devm_phy_create() is not called, so lane->phy
will be NULL. Yet it will be dereferenced in lynx_28g_cdr_lock_check(),
resulting in a crash.

This used to be well handled in v3 of that patch:
https://lore.kernel.org/linux-phy/20250926180505.760089-14-vladimir.oltean@nxp.com/
but until v5 was merged, the logic to support per-lane OF nodes was
split into a separate change, and the per-SoC compatible strings patch
was deferred to a "part 2" set. The splitting was done improperly, and
that handling of NULL lane->phy pointers was not integrated into the
proper commit.

Fixes: 7df7d58abb ("phy: lynx-28g: support individual lanes as OF PHY providers")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20260226182853.1103616-1-vladimir.oltean@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2026-02-27 19:21:01 +05:30
..
Kconfig phy: fsl-imx8mq-usb: add tca function driver for imx95 2025-02-14 17:56:12 +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 during power on 2026-01-14 21:44:39 +05:30
phy-fsl-imx8mq-usb.c phy-for-7.0 2026-02-17 11:40:04 -08:00
phy-fsl-imx8qm-hsio.c phy: freescale: imx8qm-hsio: fix NULL pointer dereference 2026-01-21 13:44:46 +05:30
phy-fsl-imx8qm-lvds-phy.c phy: freescale: Discard pm_runtime_put() return value 2025-12-23 23:11:03 +05:30
phy-fsl-lynx-28g.c phy: lynx-28g: skip CDR lock workaround for lanes disabled in the device tree 2026-02-27 19:21:01 +05:30
phy-fsl-samsung-hdmi.c phy: freescale: phy-fsl-samsung-hdmi: convert from round_rate() to determine_rate() 2025-12-24 12:53:35 +05:30