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 <amirs@codeaurora.org>
This commit is contained in:
parent
a80e267a8c
commit
884d20e96e
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue