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

Commit 16b77022 authored by Bhaumik Bhatt's avatar Bhaumik Bhatt
Browse files

mhi: core: add a power down status to notify controller



MHI controller can use power down status to take desired action
when core layer wants to issue a wake up in cases where it is
powering down.

Change-Id: I55c30b2a8bd703dcd6c994220b64023617540ed0
Signed-off-by: default avatarBhaumik Bhatt <bbhatt@codeaurora.org>
parent 771efa0c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -564,6 +564,8 @@ static void mhi_pm_disable_transition(struct mhi_controller *mhi_cntrl,
		mhi_cntrl->ee = MHI_EE_DISABLE_TRANSITION;
		mhi_cntrl->dev_state = MHI_STATE_RESET;
	}
	/* notify controller of power down regardless of state transitions */
	mhi_cntrl->power_down = true;
	write_unlock_irq(&mhi_cntrl->pm_lock);

	/* wake up any threads waiting for state transitions */
+1 −0
Original line number Diff line number Diff line
@@ -327,6 +327,7 @@ struct mhi_controller {
	enum MHI_DEBUG_LEVEL log_lvl;

	/* controller specific data */
	bool power_down;
	void *priv_data;
	void *log_buf;
	struct dentry *dentry;