msm: ipa3: Changes to check return code after halt command timeout

After halt command timeout verify return code to check command
operation completed or not. If return code success continue further
otherwise return error.

Change-Id: I07ac56d5200163d7d1f8087ce807cd6cd4ebcebc
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
This commit is contained in:
Ashok Vuyyuru 2021-02-10 21:44:44 +05:30
commit 10a68ad751

View file

@ -4510,11 +4510,8 @@ int gsi_halt_channel_ee(unsigned int chan_idx, unsigned int ee, int *code)
res = wait_for_completion_timeout(&gsi_ctx->gen_ee_cmd_compl,
msecs_to_jiffies(GSI_STOP_CMD_TIMEOUT_MS));
if (res == 0) {
if (res == 0)
GSIERR("chan_idx=%u ee=%u timed out\n", chan_idx, ee);
res = -GSI_STATUS_TIMED_OUT;
goto free_lock;
}
gsi_ctx->scratch.word0.val = gsi_readl(gsi_ctx->base +
GSI_EE_n_CNTXT_SCRATCH_0_OFFS(gsi_ctx->per.ee));