Merge "ipc: apr: set q6 state down when ECONNRESET from TAL"

This commit is contained in:
qctecmdr
2020-08-29 00:30:36 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -432,6 +432,8 @@ int apr_send_pkt(void *handle, uint32_t *buf)
if (rc == -ECONNRESET) {
pr_err_ratelimited("%s: Received reset error from tal\n",
__func__);
if (svc->dest_id == APR_DEST_QDSP6)
apr_set_q6_state(APR_SUBSYS_DOWN);
rc = -ENETRESET;
}
if (rc == -EAGAIN || rc == -ETIMEDOUT) {