]> git.baikalelectronics.ru Git - kernel.git/commit
clk: core: Fix runtime PM sequence in clk_core_unprepare()
authorChen-Yu Tsai <wenst@chromium.org>
Mon, 22 Aug 2022 08:14:24 +0000 (16:14 +0800)
committerStephen Boyd <sboyd@kernel.org>
Mon, 22 Aug 2022 23:17:46 +0000 (16:17 -0700)
commitf81559b87cf8295070eab0990263f99286ca1f10
tree2ff01561de4bd8fb961112b3803b3f9bbda0bbcf
parentc71b9d23a158a863ff439955c234951b5f390270
clk: core: Fix runtime PM sequence in clk_core_unprepare()

In the original commit d2cb18dd015a ("clk: Add support for runtime PM"),
the commit message mentioned that pm_runtime_put_sync() would be done
at the end of clk_core_unprepare(). This mirrors the operations in
clk_core_prepare() in the opposite order.

However, the actual code that was added wasn't in the order the commit
message described. Move clk_pm_runtime_put() to the end of
clk_core_unprepare() so that it is in the correct order.

Fixes: d2cb18dd015a ("clk: Add support for runtime PM")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20220822081424.1310926-3-wenst@chromium.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk.c