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

Skip to content
Commit 4966230a authored by Gauri Joshi's avatar Gauri Joshi
Browse files

msm: ep_pcie: Acquire wakelock as part of D0 event



During bootup scenario, there will not be any PERST de-assert
interrupt. So if host send mhi suspend event followed by
D3 hot and D0 event, then the PCIE link will be in an enabled
state but there will not be any wake lock to prevent system
suspend scenario.

To prevent the above scenario we will acquire wakelock as part of D0
during bootup scenario and from PERST-deassert for subsequent cases.
The change also involves to prevent system suspend if there is PERST
de-assertion during system suspend scenario.

Registering for suspend_noirq(), as this guarantees that there can be
no wakeup interrupts(PERST assertion) during this call.

Change-Id: I19051df46cc8353492e34175a47665ab89dc86af
Signed-off-by: default avatarSubramanian Ananthanarayanan <skananth@codeaurora.org>
Signed-off-by: default avatarGauri Joshi <gaurjosh@codeaurora.org>
parent 1e18bf1c
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