projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5262c12
)
wl12xx: use wl12xx_mem_read32() to read the rx counter
author
Kalle Valo
<kalle.valo@nokia.com>
Fri, 12 Jun 2009 11:15:00 +0000
(14:15 +0300)
committer
John W. Linville
<linville@tuxdriver.com>
Fri, 10 Jul 2009 18:57:43 +0000
(14:57 -0400)
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>
drivers/net/wireless/wl12xx/wl1251.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/wl12xx/wl1251.c
b/drivers/net/wireless/wl12xx/wl1251.c
index 1a352cf8c3eca55c561c78c61a18539d3e5d5c27..e484a231e6e56046439215b46285427210e3c678 100644
(file)
--- 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)
wl12xx_debug(DEBUG_IRQ, "intr: 0x%x", intr);
if (wl->data_path) {
- wl
12xx_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) {