diff options
author | Arik Nemtsov <arik@wizery.com> | 2012-05-10 05:13:46 -0400 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-06-05 08:56:27 -0400 |
commit | f2baf075c5121b30922751f34920815743d7ee67 (patch) | |
tree | 94f3cd04d754b9ed591dcc950651d88fdb0e5fa9 | |
parent | 4b4887e9710158dca6efd3646ba87f1da03ebe8b (diff) |
wl18xx: init Tx-released index to 0 on HW init
This ensures the index is 0 on FW recovery and prevents spurious error
prints - "WARNING illegal id in tx completion".
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
-rw-r--r-- | drivers/net/wireless/ti/wl18xx/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c index 9aae0af25fef..a8b9ceacd9c2 100644 --- a/drivers/net/wireless/ti/wl18xx/main.c +++ b/drivers/net/wireless/ti/wl18xx/main.c | |||
@@ -850,11 +850,15 @@ static void wl18xx_tx_immediate_completion(struct wl1271 *wl) | |||
850 | static int wl18xx_hw_init(struct wl1271 *wl) | 850 | static int wl18xx_hw_init(struct wl1271 *wl) |
851 | { | 851 | { |
852 | int ret; | 852 | int ret; |
853 | struct wl18xx_priv *priv = wl->priv; | ||
853 | u32 host_cfg_bitmap = HOST_IF_CFG_RX_FIFO_ENABLE | | 854 | u32 host_cfg_bitmap = HOST_IF_CFG_RX_FIFO_ENABLE | |
854 | HOST_IF_CFG_ADD_RX_ALIGNMENT; | 855 | HOST_IF_CFG_ADD_RX_ALIGNMENT; |
855 | 856 | ||
856 | u32 sdio_align_size = 0; | 857 | u32 sdio_align_size = 0; |
857 | 858 | ||
859 | /* (re)init private structures. Relevant on recovery as well. */ | ||
860 | priv->last_fw_rls_idx = 0; | ||
861 | |||
858 | /* Enable Tx SDIO padding */ | 862 | /* Enable Tx SDIO padding */ |
859 | if (wl->quirks & WLCORE_QUIRK_TX_BLOCKSIZE_ALIGN) { | 863 | if (wl->quirks & WLCORE_QUIRK_TX_BLOCKSIZE_ALIGN) { |
860 | host_cfg_bitmap |= HOST_IF_CFG_TX_PAD_TO_SDIO_BLK; | 864 | host_cfg_bitmap |= HOST_IF_CFG_TX_PAD_TO_SDIO_BLK; |