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

Commit 0c54a353 authored by Sivakanth Vaka's avatar Sivakanth Vaka
Browse files

msm: ipa3: Enabling the HOLB on USB consumer pipe for APQ target



Enabling the HOLB on USB consumer pipe to avoid IPA HW stall
if USB host slow in pulling the data.

Change-Id: I5348807e39f96d1e607a3bc930150d6aa797816e
Signed-off-by: default avatarSivakanth Vaka <svaka@codeaurora.org>
parent 53d80340
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
 */

#include <asm/barrier.h>
@@ -73,6 +73,11 @@ int ipa3_enable_data_path(u32 clnt_hdl)
				holb_cfg.tmr_val = IPA_HOLB_TMR_VAL;
			else
				holb_cfg.tmr_val = IPA_HOLB_TMR_VAL_4_5;
		} else if (ipa3_ctx->ipa_hw_type == IPA_HW_v4_5 &&
				ipa3_ctx->platform_type == IPA_PLAT_TYPE_APQ &&
				ep->client == IPA_CLIENT_USB_CONS) {
			holb_cfg.en = IPA_HOLB_TMR_EN;
			holb_cfg.tmr_val = IPA_HOLB_TMR_VAL_4_5;
		} else {
			holb_cfg.en = IPA_HOLB_TMR_DIS;
			holb_cfg.tmr_val = 0;