mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-08-18 19:41:04 +00:00
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>