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

Commit eba75488 authored by Ravinder Konka's avatar Ravinder Konka
Browse files

msm: ipa: Change BAM event threshold towards USB consumer pipe



Due to ZLT issue with USB 3.0 core, BAM threshold need to be set
to larger than single frame size. Assuming max aggregation size
as 16K, set the threshold to 16k+1.

Change-Id: Ia545c525a4cc6e0981e3d23aa9cc0e33a4cb4efe
Acked-by: default avatarChaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: default avatarRavinder Konka <rkonka@codeaurora.org>
parent 5a26d717
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -407,7 +407,8 @@ int ipa2_connect(const struct ipa_connect_params *in,
	}

	if ((ipa_ctx->ipa_hw_type == IPA_HW_v2_0 ||
		ipa_ctx->ipa_hw_type == IPA_HW_v2_5) &&
		ipa_ctx->ipa_hw_type == IPA_HW_v2_5 ||
		ipa_ctx->ipa_hw_type == IPA_HW_v2_6L) &&
		IPA_CLIENT_IS_USB_CONS(in->client))
		ep->connect.event_thresh = IPA_USB_EVENT_THRESHOLD;
	else