Parcourir la source

Merge "msm: ipa3: set aggr hard byte limit for IPA HW <= 4.2"

qctecmdr il y a 2 ans
Parent
commit
c6eca606be
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      drivers/platform/msm/ipa/ipa_v3/ipa_dp.c

+ 3 - 1
drivers/platform/msm/ipa/ipa_v3/ipa_dp.c

@@ -5467,7 +5467,9 @@ static void ipa3_set_aggr_limit(struct ipa_sys_connect_params *in,
 	/* disable ipa_status */
 	sys->ep->status.status_en = false;
 
-	if (in->client == IPA_CLIENT_APPS_WAN_COAL_CONS)
+	if (in->client == IPA_CLIENT_APPS_WAN_COAL_CONS ||
+		(in->client == IPA_CLIENT_APPS_WAN_CONS &&
+			ipa3_ctx->ipa_hw_type <= IPA_HW_v4_2))
 		in->ipa_ep_cfg.aggr.aggr_hard_byte_limit_en = 1;
 
 	IPADBG("set aggr_limit %lu\n", (unsigned long) *aggr_byte_limit);