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

Commit 0aa5678c authored by Siva Kumar Akkireddi's avatar Siva Kumar Akkireddi Committed by Siddartha Mohanadoss
Browse files

msm: mhi_dev: Send channel disconnect notification



Notify kernel clients once mhi channels are disconnected
following a device reset to allow them to take appropriate
actions.

Change-Id: Id15762fac4b26772e8079151ab0898ae1fe34016
Signed-off-by: default avatarSiva Kumar Akkireddi <sivaa@codeaurora.org>
parent b2684ee6
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1649,8 +1649,11 @@ static void mhi_update_state_info_all(enum mhi_ctrl_info info)
	struct mhi_dev_client_cb_reason reason;

	mhi_ctx->ctrl_info = info;
	for (i = 0; i < MHI_MAX_CHANNELS; ++i)
	for (i = 0; i < MHI_MAX_CHANNELS; ++i) {
		channel_state_info[i].ctrl_info = info;
		/* Notify kernel clients */
		mhi_dev_trigger_cb(i);
	}

	/* For legacy reasons for QTI client */
	reason.reason = MHI_DEV_CTRL_UPDATE;