Merge "msm: ipa3: Vote to IPA clocks when destroying MHI channels"

This commit is contained in:
Linux Build Service Account 2017-08-30 06:26:19 -07:00 committed by Gerrit - the friendly Code Review server
commit c9acad7278

View file

@ -630,6 +630,8 @@ int ipa3_mhi_destroy_channel(enum ipa_client_type client)
} }
ep = &ipa3_ctx->ep[ipa_ep_idx]; ep = &ipa3_ctx->ep[ipa_ep_idx];
IPA_ACTIVE_CLIENTS_INC_EP(client);
IPA_MHI_DBG("reset event ring (hdl: %lu, ep: %d)\n", IPA_MHI_DBG("reset event ring (hdl: %lu, ep: %d)\n",
ep->gsi_evt_ring_hdl, ipa_ep_idx); ep->gsi_evt_ring_hdl, ipa_ep_idx);
@ -651,8 +653,10 @@ int ipa3_mhi_destroy_channel(enum ipa_client_type client)
goto fail; goto fail;
} }
IPA_ACTIVE_CLIENTS_DEC_EP(client);
return 0; return 0;
fail: fail:
IPA_ACTIVE_CLIENTS_DEC_EP(client);
return res; return res;
} }