Skip to content

Commit

Permalink
wl12xx: use wl12xx_mem_read32() to read the rx counter
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kalle Valo authored and John W. Linville committed Jul 10, 2009
1 parent 5262c12 commit 53d6542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/wl12xx/wl1251.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,8 @@ static void wl1251_irq_work(struct work_struct *work)
wl12xx_debug(DEBUG_IRQ, "intr: 0x%x", intr);

if (wl->data_path) {
wl12xx_spi_mem_read(wl, wl->data_path->rx_control_addr,
&wl->rx_counter, sizeof(u32));
wl->rx_counter =
wl12xx_mem_read32(wl, wl->data_path->rx_control_addr);

/* We handle a frmware bug here */
switch ((wl->rx_counter - wl->rx_handled) & 0xf) {
Expand Down

0 comments on commit 53d6542

Please sign in to comment.