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

Commit f1fb1948 authored by Bhaumik Bhatt's avatar Bhaumik Bhatt
Browse files

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: default avatarBhaumik Bhatt <bbhatt@codeaurora.org>
parent 2fb2a34b
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