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

Commit f077287c authored by Skylar Chang's avatar Skylar Chang Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa4: disable pa_mask_en



IPA 4.0 HW requires a SW workaround to disable
pa_mask_en bit in IPA_TX_CFG register in order to allow
holb drop when configured on endpoint.

Change-Id: I51436f706d2ca65a36fadbf1599da0c4404aeae1
CRs-Fixed: 2072492
Acked-by: default avatarAdy Abraham <adya@qti.qualcomm.com>
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent aebe5ecd
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -2056,8 +2056,15 @@ int ipa3_init_hw(void)

	ipahal_write_reg(IPA_BCR, val);

	if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_0)
	if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_0) {
		struct ipahal_reg_tx_cfg cfg;

		ipahal_write_reg(IPA_CLKON_CFG, IPA_CLKON_CFG_v4_0);
		ipahal_read_reg_fields(IPA_TX_CFG, &cfg);
		/* disable PA_MASK_EN to allow holb drop */
		cfg.pa_mask_en = 0;
		ipahal_write_reg_fields(IPA_TX_CFG, &cfg);
	}

	ipa3_cfg_qsb();