diff options
author | Cristian Ciocaltea <[email protected]> | 2024-06-20 03:36:23 +0300 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2024-08-05 21:43:15 +0530 |
commit | 10ba8479f460e9256f7d884dc1b7d89006a89c7b (patch) | |
tree | 4b6cf246bce9e1130d086f96a95632f71c0a2b14 /lib/crypto/mpi/mpiutil.c | |
parent | 1b369ff94bc36d2e16c8a91c0ea8ebd329555976 (diff) |
phy: phy-rockchip-samsung-hdptx: Enable runtime PM at PHY core level
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.
Reviewed-by: Heiko Stuebner <[email protected]>
Signed-off-by: Cristian Ciocaltea <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions