[PATCH 2/4] phy: phy-rockchip-samsung-hdptx: Enable runtime PM at PHY core level
Heiko Stübner
heiko at sntech.de
Tue Jun 18 00:51:28 PDT 2024
Am Montag, 17. Juni 2024, 23:48:10 CEST schrieb Cristian Ciocaltea:
> When a new PHY is created via [devm_]phy_create(), the runtime PM for it
> is not enabled unless the parent device (which creates the PHY) has its
> own runtime PM already enabled.
>
> Move the call to devm_pm_runtime_enable() before devm_phy_create() to
> enable runtime PM at PHY core level.
>
> With this change the ->power_on() and ->power_off() callbacks do not
> require explicit runtime PM management anymore, since the PHY core
> handles that via phy_pm_runtime_{get,put}_sync() when phy_power_on() and
> phy_power_off() are invoked.
>
> Hence drop the now unnecessary calls to pm_runtime_resume_and_get() and
> pm_runtime_put() helpers.
>
> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea at collabora.com>
checked against phy_create()
Reviewed-by: Heiko Stuebner <heiko at sntech.de>
More information about the linux-phy
mailing list