]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mwifiex: enhance SD8897 MP aggregation limits
authorAvinash Patil <patila@marvell.com>
Fri, 13 Mar 2015 12:07:53 +0000 (17:37 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 16 Mar 2015 16:12:22 +0000 (18:12 +0200)
SD8897 support buffers of 4K and 16 such ports can be accomodated.
So basically 64K buffer size in single aggregation is supported.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/sdio.h

index c636944c77bcdc935bbbbf07e5f87e37e318bf43..264bc9b9e02adfcb82226840b601a2aea0764085 100644 (file)
@@ -67,6 +67,8 @@
 
 #define MWIFIEX_MP_AGGR_BUF_SIZE_16K   (16384)
 #define MWIFIEX_MP_AGGR_BUF_SIZE_32K   (32768)
+/* we leave one block of 256 bytes for DMA alignment*/
+#define MWIFIEX_MP_AGGR_BUF_SIZE_MAX    (65280)
 
 /* Misc. Config Register : Auto Re-enable interrupts */
 #define AUTO_RE_ENABLE_INT              BIT(4)
@@ -458,8 +460,8 @@ static const struct mwifiex_sdio_device mwifiex_sdio_sd8897 = {
        .max_ports = 32,
        .mp_agg_pkt_limit = 16,
        .tx_buf_size = MWIFIEX_TX_DATA_BUF_SIZE_4K,
-       .mp_tx_agg_buf_size = MWIFIEX_MP_AGGR_BUF_SIZE_32K,
-       .mp_rx_agg_buf_size = MWIFIEX_MP_AGGR_BUF_SIZE_32K,
+       .mp_tx_agg_buf_size = MWIFIEX_MP_AGGR_BUF_SIZE_MAX,
+       .mp_rx_agg_buf_size = MWIFIEX_MP_AGGR_BUF_SIZE_MAX,
        .supports_sdio_new_mode = true,
        .has_control_mask = false,
        .can_dump_fw = true,