linux/drivers/phy/freescale
Felix Gu 799e7cf2f0 phy: freescale: phy-fsl-imx8qm-lvds-phy: Fix missing pm_runtime_disable() on probe error path
If mixel_lvds_phy_reset() fails in probe after pm_runtime_enable(),
the function returns directly without calling pm_runtime_disable(),
leaving runtime PM permanently enabled for the device.

Fix this by using devm_pm_runtime_enable() so that cleanup is
automatic on any probe failure or driver unbind. This also allows
removing the manual err label and the .remove callback.

Fixes: 06ff622d61 ("phy: freescale: Add i.MX8qm Mixel LVDS PHY support")
Acked-by: Liu Ying <victor.liu@nxp.com>
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260605-lvds-v2-1-3ce7539d1104@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2026-06-11 20:57:07 +05:30
..
Kconfig phy: lynx-10g: new driver 2026-06-11 12:39:47 +05:30
Makefile phy: lynx-10g: new driver 2026-06-11 12:39:47 +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: provide regmap names 2026-05-10 17:47:21 +05:30
phy-fsl-imx8qm-lvds-phy.c phy: freescale: phy-fsl-imx8qm-lvds-phy: Fix missing pm_runtime_disable() on probe error path 2026-06-11 20:57:07 +05:30
phy-fsl-lynx-10g.c phy: lynx-10g: new driver 2026-06-11 12:39:47 +05:30
phy-fsl-lynx-28g.c phy: lynx-28g: improve phy_validate() procedure 2026-06-11 12:39:47 +05:30
phy-fsl-lynx-core.c phy: lynx-10g: new driver 2026-06-11 12:39:47 +05:30
phy-fsl-lynx-core.h phy: lynx-10g: new driver 2026-06-11 12:39:47 +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