From 416b70695ecc71ebb3e781e9b96743b160607d08 Mon Sep 17 00:00:00 2001 From: "Poddar, Siddarth" Date: Fri, 29 Apr 2016 11:02:13 +0530 Subject: [PATCH] qcacmn: Add datapath layer changes for sdio bus (Part 4 - HIF SDIO) Remove bus specific calls from data path layer. Add sdio specific target address. Add sdio bundling rates in datapath layer. Fix rx data callback for UMP system. CRs-Fixed: 969334 Change-Id: I0cd45479ca89b97455b4a9c71ce326646f38a5f3 --- htc/htc_internal.h | 9 ++++++++- htc/htc_send.c | 5 +++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/htc/htc_internal.h b/htc/htc_internal.h index 4f057a4106..63db770186 100644 --- a/htc/htc_internal.h +++ b/htc/htc_internal.h @@ -49,9 +49,12 @@ extern "C" { #define HTC_TARGET_CREDIT_INTR_MASK 0xF0 #define HTC_MIN_MSG_PER_BUNDLE 2 #if defined(HIF_USB) -#define HTC_MAX_MSG_PER_BUNDLE 9 +#define HTC_MAX_MSG_PER_BUNDLE_RX 11 +#define HTC_MAX_MSG_PER_BUNDLE_TX 8 #else +#define HTC_MAX_MSG_PER_BUNDLE_RX 64 #define HTC_MAX_MSG_PER_BUNDLE 16 +#define HTC_MAX_MSG_PER_BUNDLE_TX 32 #endif /* * HTC_MAX_TX_BUNDLE_SEND_LIMIT - @@ -185,6 +188,10 @@ typedef struct _HTC_TARGET { uint32_t TX_comp_cnt; uint8_t MaxMsgsPerHTCBundle; qdf_work_t queue_kicker; +#if defined(DEBUG_HL_LOGGING) && defined(CONFIG_HL_SUPPORT) + A_UINT32 rx_bundle_stats[HTC_MAX_MSG_PER_BUNDLE_RX]; + A_UINT32 tx_bundle_stats[HTC_MAX_MSG_PER_BUNDLE_TX]; +#endif uint32_t con_mode; } HTC_TARGET; diff --git a/htc/htc_send.c b/htc/htc_send.c index a7ffd2b4a7..e4832aab28 100644 --- a/htc/htc_send.c +++ b/htc/htc_send.c @@ -329,9 +329,10 @@ static A_STATUS htc_send_bundled_netbuf(HTC_TARGET *target, #endif status = hif_send_head(target->hif_dev, pEndpoint->UL_PipeID, - pEndpoint->Id, data_len, bundleBuf, data_attr); + pEndpoint->Id, data_len, + bundleBuf, data_attr); if (status != A_OK) { - qdf_print("%s:hif_send_head failed(len=%d).\n", __FUNCTION__, + qdf_print("%s:hif_send_head failed(len=%zu).\n", __func__, data_len); } return status;