mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
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:
parent
839d05d11b
commit
10a68ad751
1 changed files with 1 additions and 4 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue