mhi: core: Extend mhi_device_get_sync_atomic() for panic cases
In case of a kernel panic, interrupts are not handled and hence,
any attempt to assert device wake and wait for an M0 state change
relying on interrupts will fail. In order to help solve this
issue for cases where the controller needs to assert device wake
in panic path, extend the mhi_device_get_sync_atomic() API and
allow it to poll the MHI STATUS register for an M0 state change.
Make the appropriate changes wherever the API is in use.
Change-Id: I920d76d1cec879c29180438072e32e18370cf8ff
Signed-off-by:
Bhaumik Bhatt <bbhatt@codeaurora.org>
Loading
Please register or sign in to comment