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

Skip to content
Commit d09499e9 authored by Anil Veshala Veshala's avatar Anil Veshala Veshala
Browse files

spi: spi-msm-geni: Put device to suspend if PM status is active



This change is to keep the device to autosuspend only if runtime PM
status is not suspended. SPI driver resumes only if runtime PM is
active, if framework calls unprepare_message/unprepare_hardware and
if we try to keep driver to autosuspend, it may result into negative
usage count.

Also ensure for the PM calls, runtime is always enabled and if not, do
not call PM.

Change-Id: I701cbfbefb3a05ecbb99bf490e2b41b73fbaa897
Signed-off-by: default avatarAnil Veshala Veshala <quic_aveshala@quicinc.com>
parent 0b27ad13
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