Skip to content

Commit

Permalink
wl18xx: set normal/GEM Tx spare block counts
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arik Nemtsov authored and Luciano Coelho committed Jun 5, 2012
1 parent cb7b5d8 commit 1349c42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/wireless/ti/wl18xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 1349c42

Please sign in to comment.