Parcourir la source

msm: ipa3: configure HOLB for USB consumer pipe >= IPA_HW_v5_2

Disable IPA uC HOLB from parrot DTSI and enable HOLB from here.

Change-Id: I8231a8725d1e2097b5634ab79f076c83f9813acf
Signed-off-by: Jagadeesh Ponduru <[email protected]>
Jagadeesh Ponduru il y a 2 ans
Parent
commit
ffa07e273f
1 fichiers modifiés avec 9 ajouts et 0 suppressions
  1. 9 0
      drivers/platform/msm/ipa/ipa_v3/ipa_client.c

+ 9 - 0
drivers/platform/msm/ipa/ipa_v3/ipa_client.c

@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
  * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  */
 
 #include <asm/barrier.h>
@@ -80,6 +81,14 @@ int ipa3_enable_data_path(u32 clnt_hdl)
 			ep->client == IPA_CLIENT_USB_CONS) {
 			holb_cfg.en = IPA_HOLB_TMR_EN;
 			holb_cfg.tmr_val = IPA_HOLB_TMR_VAL_4_5;
+		} else if ((ipa3_ctx->ipa_hw_type == IPA_HW_v4_5) &&
+				(ep->client == IPA_CLIENT_USB_CONS)) {
+			holb_cfg.tmr_val = IPA_HOLB_TMR_VAL_4_5;
+			holb_cfg.en = IPA_HOLB_TMR_EN;
+		} else if ((ipa3_ctx->ipa_hw_type >= IPA_HW_v5_2) &&
+				(ep->client == IPA_CLIENT_USB_CONS)) {
+			holb_cfg.tmr_val = IPA_HOLB_TMR_VAL_4_5;
+			holb_cfg.en = IPA_HOLB_TMR_EN;
 		} else {
 			holb_cfg.en = IPA_HOLB_TMR_DIS;
 			holb_cfg.tmr_val = 0;