Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a585e47 authored by Mike Tipton's avatar Mike Tipton
Browse files

clk: qcom: lahaina: Fix providers left active in suspend



The PM framework prevents runtime_suspend() callbacks after
device_prepare() is called by calling pm_runtime_get_noresume(), which
increments the usage_count. If consumers don't disable their clocks
until after device_prepare(), then the clock provider will remain active
since usage_count=1. This results in regulator votes persisting after
suspend, which blocks system low power modes.

Register for the standard pm_runtime_force_suspend() and
pm_runtime_force_resume() callbacks, which force the device into suspend
even if usage_count=1. Register them in suspend_late, since consumer
clock votes will be removed earlier in suspend.

Change-Id: I73d46bdcc1664239001b7a38ed4aeadba75e57a7
Signed-off-by: default avatarMike Tipton <mdtipton@codeaurora.org>
parent 4b196d63
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment