]> git.ipfire.org Git - thirdparty/linux.git/commit
phy: freescale: phy-fsl-imx8qm-lvds-phy: Fix missing pm_runtime_disable() on probe...
authorFelix Gu <ustc.gu@gmail.com>
Fri, 5 Jun 2026 11:57:20 +0000 (19:57 +0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 11 Jun 2026 15:27:07 +0000 (20:57 +0530)
commit799e7cf2f0b50b34660b5ffce0f7d8dec376a0d5
tree27bc8786397c5cd3aa709b396a421fcbf8fb99e1
parent609878c1b684ea3f77ab72237511eb9bec927102
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: 06ff622d61d2 ("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>
drivers/phy/freescale/phy-fsl-imx8qm-lvds-phy.c