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

Commit ed83afef authored by Sujeev Dias's avatar Sujeev Dias Committed by Chris Lew
Browse files

mhi: core: wakeup waiters if early error is received



The esoc framework notifies MHI of a device assert using early
hooks. As part of moving MHI to an error state, wake up any
waiting threads so they can bail out early.

CRs-Fixed: 2500104
Change-Id: I8bf9b085cef078f0692ad198ca1ba2a8149c3172
Acked-by: default avatarBhaumik Vasav Bhatt <bbhatt@qti.qualcomm.com>
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent 83b13249
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -904,6 +904,9 @@ void mhi_control_error(struct mhi_controller *mhi_cntrl)
		goto exit_control_error;
	}

	/* notify waiters to bail out early since MHI has entered ERROR state */
	wake_up_all(&mhi_cntrl->state_event);

	/* start notifying all clients who request early notification */
	device_for_each_child(mhi_cntrl->dev, NULL, mhi_early_notify_device);