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: Vidyakumar Athota <vathota@codeaurora.org>
This commit is contained in:
Vidyakumar Athota 2016-11-28 10:45:37 -08:00 committed by Gerrit - the friendly Code Review server
parent 2be8fc81c3
commit a1ccb4d410

View file

@ -318,9 +318,6 @@ static void wdsp_glink_notify_state(void *handle, const void *priv,
if (ch->free_mem) { if (ch->free_mem) {
kfree(ch); kfree(ch);
ch = NULL; ch = NULL;
} else {
/* Open the glink channel again */
queue_work(wpriv->work_queue, &ch->lcl_ch_open_wrk);
} }
} else if (event == GLINK_REMOTE_DISCONNECTED) { } else if (event == GLINK_REMOTE_DISCONNECTED) {
dev_dbg(wpriv->dev, "%s: remote channel: %s disconnected remotely\n", dev_dbg(wpriv->dev, "%s: remote channel: %s disconnected remotely\n",