From 0bd6d0366cddeee0b842a50c5624af5d5c5bfbcd Mon Sep 17 00:00:00 2001 From: Ajit Pal Singh Date: Wed, 21 Aug 2019 15:58:13 +0530 Subject: [PATCH] qcacmn: usb: Make HTC_MAX_MSG_PER_BUNDLE_TX configurable Make HTC_MAX_MSG_PER_BUNDLE_TX configurable through config files. Change-Id: I259c4b202d4fc9e44ef3f5edf8454372a9a086d4 CRs-Fixed: 2534002 --- htc/htc_internal.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/htc/htc_internal.h b/htc/htc_internal.h index 32b527821fee..777131ca11d8 100644 --- a/htc/htc_internal.h +++ b/htc/htc_internal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2019 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -39,9 +39,15 @@ extern "C" { #define HTC_TARGET_DEBUG_INTR_MASK 0x01 #define HTC_TARGET_CREDIT_INTR_MASK 0xF0 #define HTC_MIN_MSG_PER_BUNDLE 2 + #if defined(HIF_USB) + #define HTC_MAX_MSG_PER_BUNDLE_RX 11 -#define HTC_MAX_MSG_PER_BUNDLE_TX 8 +#if defined(CFG_HTC_MAX_MSG_PER_BUNDLE_TX) +#define HTC_MAX_MSG_PER_BUNDLE_TX CFG_HTC_MAX_MSG_PER_BUNDLE_TX +#else +#define HTC_MAX_MSG_PER_BUNDLE_TX 8 +#endif /* CFG_HTC_MAX_MSG_PER_BUNDLE_TX */ #else #define HTC_MAX_MSG_PER_BUNDLE_RX 64 #define HTC_MAX_MSG_PER_BUNDLE 16