提交 53d65423 编写于 作者: K Kalle Valo 提交者: John W. Linville

wl12xx: use wl12xx_mem_read32() to read the rx counter

As a side effect the transfer is now DMA safe.
Signed-off-by: NKalle Valo <kalle.valo@nokia.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 5262c12d
...@@ -415,8 +415,8 @@ static void wl1251_irq_work(struct work_struct *work) ...@@ -415,8 +415,8 @@ static void wl1251_irq_work(struct work_struct *work)
wl12xx_debug(DEBUG_IRQ, "intr: 0x%x", intr); wl12xx_debug(DEBUG_IRQ, "intr: 0x%x", intr);
if (wl->data_path) { if (wl->data_path) {
wl12xx_spi_mem_read(wl, wl->data_path->rx_control_addr, wl->rx_counter =
&wl->rx_counter, sizeof(u32)); wl12xx_mem_read32(wl, wl->data_path->rx_control_addr);
/* We handle a frmware bug here */ /* We handle a frmware bug here */
switch ((wl->rx_counter - wl->rx_handled) & 0xf) { switch ((wl->rx_counter - wl->rx_handled) & 0xf) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册