ipc: apr: Handle ssr return code from glink
Glink may receive ssr reset event before audio has received. Handle the ssr return code from glink as ssr reset event at apr. Change-Id: I62058ad56bece93cac52f26446e9c780cba3c633 Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
e039f16fa4
commit
b91472bedb
@@ -419,8 +419,13 @@ int apr_send_pkt(void *handle, uint32_t *buf)
|
|||||||
rc = -EINVAL;
|
rc = -EINVAL;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
pr_err("%s: Write APR pkt failed with error %d\n",
|
pr_err_ratelimited("%s: Write APR pkt failed with error %d\n",
|
||||||
__func__, rc);
|
__func__, rc);
|
||||||
|
if (rc == -ECONNRESET) {
|
||||||
|
pr_err_ratelimited("%s: Received reset error from tal\n",
|
||||||
|
__func__);
|
||||||
|
rc = -ENETRESET;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
spin_unlock_irqrestore(&svc->w_lock, flags);
|
spin_unlock_irqrestore(&svc->w_lock, flags);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user