Commit 10ba847
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]>1 parent 1b369ff commit 10ba847
1 file changed
+6
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
863 | | - | |
| 863 | + | |
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
| |||
871 | 871 | | |
872 | 872 | | |
873 | 873 | | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
883 | | - | |
884 | | - | |
| 874 | + | |
885 | 875 | | |
886 | 876 | | |
887 | 877 | | |
| |||
894 | 884 | | |
895 | 885 | | |
896 | 886 | | |
897 | | - | |
898 | | - | |
899 | 887 | | |
900 | 888 | | |
901 | 889 | | |
| |||
977 | 965 | | |
978 | 966 | | |
979 | 967 | | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
980 | 972 | | |
981 | 973 | | |
982 | 974 | | |
| |||
986 | 978 | | |
987 | 979 | | |
988 | 980 | | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | 981 | | |
994 | 982 | | |
995 | 983 | | |
| |||
0 commit comments