OSDN Git Service

soc: qcom: scm_qcpe: use uninterruptible habmm_socket_recv()
authorYong Ding <yongding@codeaurora.org>
Mon, 4 Jun 2018 09:26:59 +0000 (17:26 +0800)
committerGerrit - the friendly Code Review server <code-review@localhost>
Wed, 6 Jun 2018 10:38:46 +0000 (03:38 -0700)
This is necessary to support scm call in system shutdown
procedure. With interruptible habmm_socket_recv(), it will
return immediately without blocking until the response
arrives.

Change-Id: Ia7ef95e4c6878a149ec373c8d2b5ae19a36f4125
Signed-off-by: Yong Ding <yongding@codeaurora.org>
drivers/soc/qcom/scm_qcpe.c

index f50527e..6146708 100644 (file)
@@ -476,7 +476,8 @@ static int scm_call_qcpe(u32 fn_id, struct scm_desc *desc)
        size_bytes = sizeof(smc_params);
        memset(&smc_params, 0x0, sizeof(smc_params));
 
-       ret = habmm_socket_recv(handle, &smc_params, &size_bytes, 0, 0);
+       ret = habmm_socket_recv(handle, &smc_params, &size_bytes, 0,
+                       HABMM_SOCKET_RECV_FLAGS_UNINTERRUPTIBLE);
        if (ret) {
                pr_err("habmm_socket_recv failed, ret= 0x%x\n", ret);
                goto err_ret;