Merge "msm: ipa: remove condition to avoid crash in wrap around case"

This commit is contained in:
qctecmdr
2021-06-28 21:39:23 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -262,11 +262,12 @@ static int ipa_mhi_start_gsi_channel(enum ipa_client_type client,
ep->gsi_evt_ring_hdl = *params->cached_gsi_evt_ring_hdl; ep->gsi_evt_ring_hdl = *params->cached_gsi_evt_ring_hdl;
} }
if (params->ev_ctx_host->wp == params->ev_ctx_host->rbase) { /**
IPA_MHI_ERR("event ring wp is not updated. base=wp=0x%llx\n", * compare host evt ring wp with base ptr condition was added to check
params->ev_ctx_host->wp); * whether MHI driver ring db or not, but in wrap around case wp and
goto fail_alloc_ch; * base ptr can be same so removing it.
} * if evt-ring has no credit, gsi will crash.
*/
IPA_MHI_DBG("Ring event db: evt_ring_hdl=%lu host_wp=0x%llx\n", IPA_MHI_DBG("Ring event db: evt_ring_hdl=%lu host_wp=0x%llx\n",
ep->gsi_evt_ring_hdl, params->ev_ctx_host->wp); ep->gsi_evt_ring_hdl, params->ev_ctx_host->wp);