]> git.karo-electronics.de Git - linux-beck.git/commitdiff
wl18xx: set normal/GEM Tx spare block counts
authorArik Nemtsov <arik@wizery.com>
Thu, 10 May 2012 09:13:16 +0000 (12:13 +0300)
committerLuciano Coelho <coelho@ti.com>
Tue, 5 Jun 2012 12:54:51 +0000 (15:54 +0300)
Initialize the Tx spare block counts for all operating modes in the 18xx
card.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wl18xx/main.c

index 68f5e09be50860817aa49e0b011439df75615cee..70683adc9cf3ecd81e90e2aceb8ae390f2f93ad7 100644 (file)
@@ -32,6 +32,9 @@
 #include "conf.h"
 #include "wl18xx.h"
 
+#define WL18XX_TX_HW_BLOCK_SPARE        1
+#define WL18XX_TX_HW_GEM_BLOCK_SPARE    2
+
 static struct wl18xx_conf wl18xx_default_conf = {
        .phy = {
                .phy_standalone                 = 0x00,
@@ -326,6 +329,8 @@ int __devinit wl18xx_probe(struct platform_device *pdev)
        wl->ptable = wl18xx_ptable;
        wl->rtable = wl18xx_rtable;
        wl->num_tx_desc = 32;
+       wl->normal_tx_spare = WL18XX_TX_HW_BLOCK_SPARE;
+       wl->gem_tx_spare = WL18XX_TX_HW_GEM_BLOCK_SPARE;
 
        return wlcore_probe(wl, pdev);
 }