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

Commit 9978f220 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa4: Fix to decrement the client count after writing QMAP ID"

parents 79ad1b0e 022c6ffa
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1863,6 +1863,10 @@ int ipa3_disconnect_gsi_wdi_pipe(u32 clnt_hdl)
				result);
		goto fail_dealloc_channel;
	}

	if (!ep->keep_ipa_awake)
		IPA_ACTIVE_CLIENTS_DEC_EP(ipa3_get_client_mapping(clnt_hdl));

	result = ipa3_release_gsi_channel(clnt_hdl);
	if (result) {
		IPAERR("GSI dealloc channel failed %d\n",
@@ -1871,11 +1875,6 @@ int ipa3_disconnect_gsi_wdi_pipe(u32 clnt_hdl)
	}
	ipa_release_uc_smmu_mappings(clnt_hdl);

	memset(&ipa3_ctx->ep[clnt_hdl], 0, sizeof(struct ipa3_ep_context));

	if (!ep->keep_ipa_awake)
		IPA_ACTIVE_CLIENTS_DEC_EP(ipa3_get_client_mapping(clnt_hdl));

	/* for AP+STA stats update */
	if (ipa3_ctx->uc_wdi_ctx.stats_notify)
		ipa3_ctx->uc_wdi_ctx.stats_notify = NULL;
@@ -2589,6 +2588,7 @@ int ipa3_write_qmapid_gsi_wdi_pipe(u32 clnt_hdl, u8 qmap_id)
			goto fail_start_channel;
		}
	}
	IPA_ACTIVE_CLIENTS_DEC_EP(ipa3_get_client_mapping(clnt_hdl));
	return 0;
fail_start_channel:
fail_read_channel_scratch: