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

Commit a1ccb4d4 authored by Vidyakumar Athota's avatar Vidyakumar Athota Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: avoid channel open during LOCAL_DISCONNECT state



Glink channel state LOCAL_DISCONNECT occurs only when remote
side channel is closed or device node closed from userspace.
In this case, glink LINK itself is not available to open channel.
So avoid opening glink channels during LOCAL_DISCONNECT state.

Change-Id: I637622d7bfd0cd1d0aa5b905173a7674093674c4
Signed-off-by: default avatarVidyakumar Athota <vathota@codeaurora.org>
parent 2be8fc81
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -318,9 +318,6 @@ static void wdsp_glink_notify_state(void *handle, const void *priv,
		if (ch->free_mem) {
			kfree(ch);
			ch = NULL;
		} else {
			/* Open the glink channel again */
			queue_work(wpriv->work_queue, &ch->lcl_ch_open_wrk);
		}
	} else if (event == GLINK_REMOTE_DISCONNECTED) {
		dev_dbg(wpriv->dev, "%s: remote channel: %s disconnected remotely\n",