ASoC: wsa881x: Avoid query temp during suspend
Runtime suspend in slimbus driver makes
QMI call which takes wakelock and result in
first system suspend to fail.
As a result of first suspend fail, POST_PM_SUSPEND
event is dispatched to thermal core which registered
to pm notifier. WSA being one of registered
thermal zone gets query for temperature, and makes
slimbus reads/writes which will result in runtime
resume of slimbus driver to happen. System suspend
fails again continuously in this endless loop as
slimbus runtime suspend will make QMI call
again.
Update wsa temp sensor to handle suspend
event by registering to pm notifier and ignore the
temperature request from thermal core at resume.
This will avoid slimbus reads/writes during
suspend in progress and allow XO shutdown to happen.
CRs-Fixed: 1032530
Change-Id: I89f19f6f50f92281db3ee4d64d73432852b288bc
Signed-off-by:
Laxminath Kasam <lkasam@codeaurora.org>
Loading
Please register or sign in to comment