From 884d20e96e24295a2ddd318c72b69b7ab38d18d8 Mon Sep 17 00:00:00 2001 From: Amir Samuelov Date: Mon, 12 Dec 2016 11:00:43 +0200 Subject: [PATCH] spcom: cleanup rx-abort flag when channel closed When the remote subsystem crash (SSR), glink will notify rx-abort for any pending rx buffer that was queued. The notification callback sets the channel rx-abort flag. When the channel is closed, reset the rx-abort flag. Change-Id: I6cca614327f7b8e3216e3872a36f08f33a65b23e Signed-off-by: Amir Samuelov --- drivers/soc/qcom/spcom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/soc/qcom/spcom.c b/drivers/soc/qcom/spcom.c index 0c5f3b84162b..841fb8656387 100644 --- a/drivers/soc/qcom/spcom.c +++ b/drivers/soc/qcom/spcom.c @@ -731,7 +731,9 @@ static int spcom_close(struct spcom_channel *ch) ch->glink_handle = NULL; ch->ref_count = 0; - + ch->rx_abort = false; + ch->tx_abort = false; + ch->glink_state = GLINK_LOCAL_DISCONNECTED; ch->txn_id = INITIAL_TXN_ID; /* use non-zero nonce for debug */ ch->pid = 0;