diff options
author | Dong Aisheng <[email protected]> | 2024-10-27 20:00:10 +0800 |
---|---|---|
committer | Abel Vesa <[email protected]> | 2024-11-05 12:02:22 +0200 |
commit | e81361f6cf9bf4a1848b0813bc4becb2250870b8 (patch) | |
tree | 5d74d3638bb8fe25cfa242f2c5d9c52ae0789bbf /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | ff4279618f0aec350b0fb41b2b35841324fbd96e (diff) |
clk: imx: clk-scu: fix clk enable state save and restore
The scu clk_ops only inplements prepare() and unprepare() callback.
Saving the clock state during suspend by checking clk_hw_is_enabled()
is not safe as it's possible that some device drivers may only
disable the clocks without unprepare. Then the state retention will not
work for such clocks.
Fixing it by checking clk_hw_is_prepared() which is more reasonable
and safe.
Fixes: d0409631f466 ("clk: imx: scu: add suspend/resume support")
Reviewed-by: Peng Fan <[email protected]>
Tested-by: Carlos Song <[email protected]>
Signed-off-by: Dong Aisheng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Abel Vesa <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions