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

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

Merge "msm: ipa3: Fix to enable the HOLB during enable wdi pipe"

parents 0bf08898 b9badb5a
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -2195,6 +2195,7 @@ int ipa3_enable_gsi_wdi_pipe(u32 clnt_hdl)
	struct ipa3_ep_context *ep;
	struct ipa_ep_cfg_ctrl ep_cfg_ctrl;
	int ipa_ep_idx;
	struct ipa_ep_cfg_holb holb_cfg;

	IPADBG("ep=%d\n", clnt_hdl);

@@ -2215,6 +2216,18 @@ int ipa3_enable_gsi_wdi_pipe(u32 clnt_hdl)
	memset(&ep_cfg_ctrl, 0, sizeof(struct ipa_ep_cfg_ctrl));
	ipa3_cfg_ep_ctrl(ipa_ep_idx, &ep_cfg_ctrl);

	if (IPA_CLIENT_IS_CONS(ep->client)) {
		memset(&holb_cfg, 0, sizeof(holb_cfg));
		holb_cfg.en = IPA_HOLB_TMR_EN;
		if (ipa3_ctx->ipa_hw_type < IPA_HW_v4_5)
			holb_cfg.tmr_val = IPA_HOLB_TMR_VAL;
		else
			holb_cfg.tmr_val = IPA_HOLB_TMR_VAL_4_5;

		result = ipa3_cfg_ep_holb(clnt_hdl, &holb_cfg);
	}


	IPA_ACTIVE_CLIENTS_DEC_EP(ipa3_get_client_mapping(clnt_hdl));
	ep->gsi_offload_state |= IPA_WDI_ENABLED;
	IPADBG("client (ep: %d) enabled\n", clnt_hdl);