Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7e1a665 authored by Nadine Toledano's avatar Nadine Toledano
Browse files

msm: ipa3: fix event ring allocation for CONS pipes



Allocate event ring for GPI IPA consumer pipes, regardless of
its policy type.

CRs-Fixed: 985987
Change-Id: I39de93b4796a44c1059f52e24010db48eeb22919
Signed-off-by: default avatarNadine Toledano <nadinet@codeaurora.org>
parent 73135edf
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -3545,8 +3545,12 @@ static int ipa_gsi_setup_channel(struct ipa3_ep_context *ep)
	}

	ep->gsi_evt_ring_hdl = ~0;
	/* allocate event ring for all interrupt-policy pipes */
	if (ep->sys->policy != IPA_POLICY_NOINTR_MODE) {
	/*
	 * allocate event ring for all interrupt-policy
	 * pipes and IPA consumers pipes
	 */
	if (ep->sys->policy != IPA_POLICY_NOINTR_MODE ||
	     IPA_CLIENT_IS_CONS(ep->client)) {
		memset(&gsi_evt_ring_props, 0, sizeof(gsi_evt_ring_props));
		gsi_evt_ring_props.intf = GSI_EVT_CHTYPE_GPI_EV;
		gsi_evt_ring_props.intr = GSI_INTR_IRQ;