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

Commit ced2080e authored by Siva Kumar Akkireddi's avatar Siva Kumar Akkireddi
Browse files

msm: mhi_dev: Fix broadcast check for uevents



Check the OUT channel attributes for sending uevent
broadcasts instead of IN channel as the broadcast attribute is
specified for the OUT channels.

Change-Id: I6ef62ade7eaa9a424d1941a9cdff064eabcade41
Signed-off-by: default avatarSiva Kumar Akkireddi <sivaa@codeaurora.org>
parent 03cc3a28
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1182,8 +1182,8 @@ void mhi_uci_chan_state_notify(struct mhi_dev *mhi,
	}

	uci_handle = &uci_ctxt.client_handles[CHAN_TO_CLIENT(ch_id)];
	if (!uci_handle->in_chan_attr ||
		!uci_handle->in_chan_attr->state_bcast) {
	if (!uci_handle->out_chan_attr ||
		!uci_handle->out_chan_attr->state_bcast) {
		uci_log(UCI_DBG_VERBOSE, "Uevents not enabled for chan %d\n",
				ch_id);
		return;