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

Skip to content
Commit f9602119 authored by Puranam V G Tejaswi's avatar Puranam V G Tejaswi
Browse files

msm: kgsl: check if state change to suspend succeeds



Check the return value of kgsl_pwrctrl_change_state()
when requested state is suspend. This call can fail
and we encounter adverse effects, if we proceed without
checking if the call succeeded. For instance, in case of
_preemption_store(), it is fatal to change ringbuffer,
when state change to suspend fails. Also add a helper
function that changes a given flag safely, only after
successful state change to suspend.

Change-Id: I8a929cc201d127baeaabed194655ac73a8032b2f
Signed-off-by: default avatarPuranam V G Tejaswi <pvgtejas@codeaurora.org>
parent fff51c15
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