diff options
author | Kalle Valo <kalle.valo@nokia.com> | 2009-06-12 07:15:00 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 14:57:43 -0400 |
commit | 53d65423ba1bc3c38d53b27656395c632b073590 (patch) | |
tree | 34aff5765a25ba9b478595a02542902fbc3f206e /drivers/net | |
parent | 5262c12d16334a37354c93d606bdb96499f7e5fc (diff) |
wl12xx: use wl12xx_mem_read32() to read the rx counter
As a side effect the transfer is now DMA safe.
Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1251.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251.c b/drivers/net/wireless/wl12xx/wl1251.c index 1a352cf8c3e..e484a231e6e 100644 --- a/drivers/net/wireless/wl12xx/wl1251.c +++ b/drivers/net/wireless/wl12xx/wl1251.c | |||
@@ -415,8 +415,8 @@ static void wl1251_irq_work(struct work_struct *work) | |||
415 | wl12xx_debug(DEBUG_IRQ, "intr: 0x%x", intr); | 415 | wl12xx_debug(DEBUG_IRQ, "intr: 0x%x", intr); |
416 | 416 | ||
417 | if (wl->data_path) { | 417 | if (wl->data_path) { |
418 | wl12xx_spi_mem_read(wl, wl->data_path->rx_control_addr, | 418 | wl->rx_counter = |
419 | &wl->rx_counter, sizeof(u32)); | 419 | wl12xx_mem_read32(wl, wl->data_path->rx_control_addr); |
420 | 420 | ||
421 | /* We handle a frmware bug here */ | 421 | /* We handle a frmware bug here */ |
422 | switch ((wl->rx_counter - wl->rx_handled) & 0xf) { | 422 | switch ((wl->rx_counter - wl->rx_handled) & 0xf) { |