mhi: core: Expose API to check device execution environment

Expose an API for clients to check the device execution
environment by reading the BHI_EXECENV register. This can be
used in situations where the controller decides to check the
state of a device which can abruptly reset without warning.

Change-Id: Ib0841535f8baf7bbdf8e737a816a400ee072ab93
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
This commit is contained in:
Bhaumik Bhatt 2020-06-24 13:16:16 -07:00
commit b456598ae4

View file

@ -853,6 +853,12 @@ int mhi_get_remote_time(struct mhi_device *mhi_dev,
u64 local_time,
u64 remote_time));
/**
* mhi_get_exec_env - Return execution environment of the device
* @mhi_cntrl: MHI controller
*/
enum mhi_ee mhi_get_exec_env(struct mhi_controller *mhi_cntrl);
/**
* mhi_get_mhi_state - Return MHI state of device
* @mhi_cntrl: MHI controller