Merge "msm: ipa3: retry on IPA_HW_CONS_DISABLE_CMD_GSI_STOP_FAILURE"
This commit is contained in:
commit
1e17007652
1 changed files with 6 additions and 2 deletions
|
@ -585,7 +585,9 @@ send_cmd:
|
||||||
|
|
||||||
if (ipa3_ctx->uc_ctx.uc_status != expected_status) {
|
if (ipa3_ctx->uc_ctx.uc_status != expected_status) {
|
||||||
if (ipa3_ctx->uc_ctx.uc_status ==
|
if (ipa3_ctx->uc_ctx.uc_status ==
|
||||||
IPA_HW_PROD_DISABLE_CMD_GSI_STOP_FAILURE) {
|
IPA_HW_PROD_DISABLE_CMD_GSI_STOP_FAILURE ||
|
||||||
|
ipa3_ctx->uc_ctx.uc_status ==
|
||||||
|
IPA_HW_CONS_DISABLE_CMD_GSI_STOP_FAILURE) {
|
||||||
retries++;
|
retries++;
|
||||||
if (retries == IPA_GSI_CHANNEL_STOP_MAX_RETRY) {
|
if (retries == IPA_GSI_CHANNEL_STOP_MAX_RETRY) {
|
||||||
IPAERR("Failed after %d tries\n", retries);
|
IPAERR("Failed after %d tries\n", retries);
|
||||||
|
@ -594,6 +596,8 @@ send_cmd:
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
}
|
}
|
||||||
IPA3_UC_UNLOCK(flags);
|
IPA3_UC_UNLOCK(flags);
|
||||||
|
if (ipa3_ctx->uc_ctx.uc_status ==
|
||||||
|
IPA_HW_PROD_DISABLE_CMD_GSI_STOP_FAILURE)
|
||||||
ipa3_inject_dma_task_for_gsi();
|
ipa3_inject_dma_task_for_gsi();
|
||||||
/* sleep for short period to flush IPA */
|
/* sleep for short period to flush IPA */
|
||||||
usleep_range(IPA_GSI_CHANNEL_STOP_SLEEP_MIN_USEC,
|
usleep_range(IPA_GSI_CHANNEL_STOP_SLEEP_MIN_USEC,
|
||||||
|
|
Loading…
Add table
Reference in a new issue