From a1ccb4d410b2904ca0591c6ec27a277229b81fc8 Mon Sep 17 00:00:00 2001 From: Vidyakumar Athota Date: Mon, 28 Nov 2016 10:45:37 -0800 Subject: [PATCH] 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 --- drivers/soc/qcom/wcd-dsp-glink.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/soc/qcom/wcd-dsp-glink.c b/drivers/soc/qcom/wcd-dsp-glink.c index 6bc815862541..daa6ed5ed5ea 100644 --- a/drivers/soc/qcom/wcd-dsp-glink.c +++ b/drivers/soc/qcom/wcd-dsp-glink.c @@ -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",