linux/drivers/phy/starfive
Can Peng 97bed336f6 phy: starfive: Fix runtime PM cleanup in JH7110 DPHY RX probe
stf_dphy_probe() enables runtime PM before registering the PHY provider.
If devm_of_phy_provider_register() fails, probe returns with runtime PM
still enabled.

The driver also has no remove callback, so runtime PM is left enabled
on driver unbind after a successful probe.

Use devm_pm_runtime_enable() so runtime PM is disabled automatically
on later probe failures and on driver unbind.

Fixes: f8aa660841 ("phy: starfive: Add mipi dphy rx support")
Signed-off-by: Can Peng <pengcan@kylinos.cn>
Reviewed-by: Changhuang Liang <changhuang.liang@starfivetech.com>
Link: https://patch.msgid.link/20260718090054.444513-3-pengcan@kylinos.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2026-07-20 16:25:58 +05:30
..
Kconfig phy: starfive: Add mipi dphy tx support 2024-06-15 17:38:30 +05:30
Makefile phy: starfive: Add mipi dphy tx support 2024-06-15 17:38:30 +05:30
phy-jh7110-dphy-rx.c phy: starfive: Fix runtime PM cleanup in JH7110 DPHY RX probe 2026-07-20 16:25:58 +05:30
phy-jh7110-dphy-tx.c phy: starfive: Fix runtime PM cleanup in JH7110 DPHY TX probe 2026-07-20 16:25:58 +05:30
phy-jh7110-pcie.c phy: starfive: fix error code in probe 2023-07-24 15:53:54 +05:30
phy-jh7110-usb.c phy: starfive: jh7110-usb: Fix USB 2.0 host occasional detection failure 2025-05-14 09:45:12 +01:00