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

Commit 59c11dee authored by Bhaumik Bhatt's avatar Bhaumik Bhatt Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarBhaumik Bhatt <bbhatt@codeaurora.org>
parent 81d62da0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -835,6 +835,12 @@ int mhi_get_remote_time_sync(struct mhi_device *mhi_dev,
			     u64 *t_host,
			     u64 *t_dev);

/**
 * 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