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

Commit 989c926d authored by Skylar Chang's avatar Skylar Chang
Browse files

msm: ipa: bug on tag timeout



tag process should not timeout during
pipe disconnect. bug on timeout to check
any stall in ipa

Change-Id: Ie06ea83e5b4a18fcf6006c5fdb62b8d9fc40fc3d
Acked-by: default avatarSunil Paidimarri <hisunil@qti.qualcomm.com>
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent 13fe987c
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -83,8 +83,14 @@ int ipa_disable_data_path(u32 clnt_hdl)
	aggr_init = ipa_read_reg(ipa_ctx->mmio,
			IPA_ENDP_INIT_AGGR_N_OFST_v2_0(clnt_hdl));
	if (((aggr_init & IPA_ENDP_INIT_AGGR_N_AGGR_EN_BMSK) >>
	    IPA_ENDP_INIT_AGGR_N_AGGR_EN_SHFT) == IPA_ENABLE_AGGR)
		ipa_tag_aggr_force_close(clnt_hdl);
	    IPA_ENDP_INIT_AGGR_N_AGGR_EN_SHFT) == IPA_ENABLE_AGGR) {
		res = ipa_tag_aggr_force_close(clnt_hdl);
		if (res) {
			IPAERR("tag process timeout, client:%d err:%d\n",
				clnt_hdl, res);
			BUG();
		}
	}

	return res;
}
+8 −2
Original line number Diff line number Diff line
@@ -108,8 +108,14 @@ int ipa3_disable_data_path(u32 clnt_hdl)
	aggr_init = ipa_read_reg(ipa3_ctx->mmio,
			IPA_ENDP_INIT_AGGR_N_OFST_v3_0(clnt_hdl));
	if (((aggr_init & IPA_ENDP_INIT_AGGR_N_AGGR_EN_BMSK) >>
	    IPA_ENDP_INIT_AGGR_N_AGGR_EN_SHFT) == IPA_ENABLE_AGGR)
		ipa3_tag_aggr_force_close(clnt_hdl);
	    IPA_ENDP_INIT_AGGR_N_AGGR_EN_SHFT) == IPA_ENABLE_AGGR) {
		res = ipa3_tag_aggr_force_close(clnt_hdl);
		if (res) {
			IPAERR("tag process timeout, client:%d err:%d\n",
				   clnt_hdl, res);
			BUG();
		}
	}

	return res;
}