Loading drivers/platform/msm/ipa/ipa_uc.c +5 −1 Original line number Diff line number Diff line Loading @@ -568,9 +568,11 @@ int ipa_uc_send_cmd(u32 cmd, u32 opcode, u32 expected_status, uc_rsp.raw32b = ipa_ctx->uc_ctx.uc_sram_mmio-> responseParams; if (uc_rsp.params.originalCmdOp == ipa_ctx->uc_ctx.pending_cmd) ipa_ctx->uc_ctx.pending_cmd) { ipa_ctx->uc_ctx.pending_cmd = -1; break; } } usleep_range(IPA_UC_POLL_SLEEP_USEC, IPA_UC_POLL_SLEEP_USEC); } Loading Loading @@ -604,10 +606,12 @@ int ipa_uc_send_cmd(u32 cmd, u32 opcode, u32 expected_status, if (ipa_ctx->uc_ctx.uc_status != expected_status) { IPAERR("Recevied status %u, Expected status %u\n", ipa_ctx->uc_ctx.uc_status, expected_status); ipa_ctx->uc_ctx.pending_cmd = -1; mutex_unlock(&ipa_ctx->uc_ctx.uc_lock); return -EFAULT; } ipa_ctx->uc_ctx.pending_cmd = -1; mutex_unlock(&ipa_ctx->uc_ctx.uc_lock); IPADBG("uC cmd %u send succeeded\n", opcode); Loading Loading
drivers/platform/msm/ipa/ipa_uc.c +5 −1 Original line number Diff line number Diff line Loading @@ -568,9 +568,11 @@ int ipa_uc_send_cmd(u32 cmd, u32 opcode, u32 expected_status, uc_rsp.raw32b = ipa_ctx->uc_ctx.uc_sram_mmio-> responseParams; if (uc_rsp.params.originalCmdOp == ipa_ctx->uc_ctx.pending_cmd) ipa_ctx->uc_ctx.pending_cmd) { ipa_ctx->uc_ctx.pending_cmd = -1; break; } } usleep_range(IPA_UC_POLL_SLEEP_USEC, IPA_UC_POLL_SLEEP_USEC); } Loading Loading @@ -604,10 +606,12 @@ int ipa_uc_send_cmd(u32 cmd, u32 opcode, u32 expected_status, if (ipa_ctx->uc_ctx.uc_status != expected_status) { IPAERR("Recevied status %u, Expected status %u\n", ipa_ctx->uc_ctx.uc_status, expected_status); ipa_ctx->uc_ctx.pending_cmd = -1; mutex_unlock(&ipa_ctx->uc_ctx.uc_lock); return -EFAULT; } ipa_ctx->uc_ctx.pending_cmd = -1; mutex_unlock(&ipa_ctx->uc_ctx.uc_lock); IPADBG("uC cmd %u send succeeded\n", opcode); Loading