浏览代码

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 2 年之前
父节点
当前提交
ffa07e273f
共有 1 个文件被更改,包括 9 次插入0 次删除
  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;