summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wl18xx
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2012-05-10 09:13:16 (GMT)
committerLuciano Coelho <coelho@ti.com>2012-06-05 12:54:51 (GMT)
commit1349c4212aacde0d26b20e9ff2ba7501d6e33d3c (patch)
treeaedaa752e3708411fe07b4f6ba13d4d7d0ad7607 /drivers/net/wireless/ti/wl18xx
parentcb7b5d86c8283482bbf26398e83d2cbc5e36e193 (diff)
downloadlinux-fsl-qoriq-1349c4212aacde0d26b20e9ff2ba7501d6e33d3c.tar.xz
wl18xx: set normal/GEM Tx spare block counts
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>
Diffstat (limited to 'drivers/net/wireless/ti/wl18xx')
-rw-r--r--drivers/net/wireless/ti/wl18xx/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c
index 68f5e09..70683ad 100644
--- a/drivers/net/wireless/ti/wl18xx/main.c
+++ b/drivers/net/wireless/ti/wl18xx/main.c
@@ -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);
}