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:Subramanian Ananthanarayanan <skananth@codeaurora.org> Signed-off-by:
Gauri Joshi <gaurjosh@codeaurora.org>
Loading
Please register or sign in to comment