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

Skip to content
Commit 1e18fe92 authored by Jordan Crouse's avatar Jordan Crouse Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Directly enable the regulator after a soft reset



The power state machine doesn't get touched during a soft reset so
the code expects the state to remain exactly the same once we get
back to active.  In reality there is a minor hiccup as the SP/TP
regulator gets reset by the soft reset. That got fixed in
a316a2a6 by always calling the
regulator enable call.

Unfortunately 7631272f was soon
added and added statefulness to the regulator enable/disable pair.
Beacuse adreno_regulator_disable() is never called during the soft
reset process the state machine thinks the SP/TP is still active
and the subsequent call to the regulator_enable hook returned
silently. What we need to do is go straight to the hardware
(since we *know* that the SP/TP is turned off) and force it back
on so the state stays correct.

CRs-Fixed: 745166
Change-Id: Ic0dedbade57361e94f11001032f42ba5d20c9956
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 96a5ab50
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