audio: qdsp6v2: check EINTR when retry for habmm_socket_recv

HAB returns -EINTR instead of -EAGAIN to request a retry from the
habmm_socket_recv() call.

Change-Id: I61bcef5c11048a3947b8079d1591937d7b83602a
Signed-off-by: Tony Han <xiahan@codeaurora.org>
This commit is contained in:
Tony Han 2018-09-05 19:28:10 +08:00
parent 6545aa3c27
commit 51139b0339
2 changed files with 3 additions and 3 deletions

View file

@ -541,7 +541,7 @@ static int apr_vm_cb_thread(void *data)
&apr_rx_buf_len,
0xFFFFFFFF,
0);
} while (time_before(jiffies, delay) && (ret == -EAGAIN) &&
} while (time_before(jiffies, delay) && (ret == -EINTR) &&
(apr_rx_buf_len == 0));
if (ret) {
pr_err("%s: habmm_socket_recv failed %d\n",

View file

@ -130,7 +130,7 @@ static int msm_audio_ion_smmu_map(struct ion_client *client,
&cmd_rsp_size,
0xFFFFFFFF,
0);
} while (time_before(jiffies, delay) && (rc == -EAGAIN) &&
} while (time_before(jiffies, delay) && (rc == -EINTR) &&
(cmd_rsp_size == 0));
if (rc) {
pr_err("%s: habmm_socket_recv failed %d\n",
@ -218,7 +218,7 @@ static int msm_audio_ion_smmu_unmap(struct ion_client *client,
0xFFFFFFFF,
0);
} while (time_before(jiffies, delay) &&
(rc == -EAGAIN) && (cmd_rsp_size == 0));
(rc == -EINTR) && (cmd_rsp_size == 0));
if (rc) {
pr_err("%s: habmm_socket_recv failed %d\n",
__func__, rc);