msm: ipa: update MHI event id logic

1. Device side GSI event channel allocated for MHI event channel
need to be sequential.
2. The device side evt_id = host_evt_id - host first_evt_idx +
device side offset (ipa3_ctx->mhi_evid_limits).

Change-Id: Ieab7596caa6880d2daf75c3bc45cd59375dd7589
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
tirimbino
Bojun Pan 5 years ago
parent 3db0f759f7
commit 98c140797d
  1. 3
      drivers/platform/msm/ipa/ipa_clients/ipa_mhi_client.c

@ -1669,7 +1669,8 @@ int ipa_mhi_connect_pipe(struct ipa_mhi_connect_params *in, u32 *clnt_hdl)
internal.start.gsi.mhi = &channel->ch_scratch.mhi;
internal.start.gsi.cached_gsi_evt_ring_hdl =
&channel->cached_gsi_evt_ring_hdl;
internal.start.gsi.evchid = channel->index;
internal.start.gsi.evchid = channel->ch_ctx_host.erindex -
ipa_mhi_client_ctx->first_er_idx;
res = ipa_connect_mhi_pipe(&internal, clnt_hdl);
if (res) {

Loading…
Cancel
Save