Skip to content
Commit bfd594b3 authored by Miaoqian Lin's avatar Miaoqian Lin Committed by Abel Vesa
Browse files

clk: imx: scu: Use pm_runtime_resume_and_get to fix pm_runtime_get_sync() usage



If the device is already in a runtime PM enabled state
pm_runtime_get_sync() will return 1.

Also, we need to call pm_runtime_put_noidle() when pm_runtime_get_sync()
fails, so use pm_runtime_resume_and_get() instead. this function
will handle this.

Fixes: 78edeb08 ("clk: imx: scu: add runtime pm support")
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Reviewed-by: default avatarAbel Vesa <abel.vesa@nxp.com>
Link: https://lore.kernel.org/r/20220425011117.25093-1-linmq006@gmail.com


Signed-off-by: default avatarAbel Vesa <abel.vesa@nxp.com>
parent 39772efd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment