b43-pio: Fix RX error path for rev>=8 devices
authorMichael Buesch <mb@bu3sch.de>
Sat, 7 Nov 2009 17:54:22 +0000 (18:54 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 11 Nov 2009 20:23:49 +0000 (15:23 -0500)
This fixes the RX error path for rev>=8 devices.
The wrong register size and definitions were used.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/pio.c

index 3105f235303a0e9a9e3942525661ec848d51820e..7d2550269ede9acb3d629030981aba67a72bd608 100644 (file)
@@ -761,7 +761,11 @@ data_ready:
 rx_error:
        if (err_msg)
                b43dbg(q->dev->wl, "PIO RX error: %s\n", err_msg);
-       b43_piorx_write16(q, B43_PIO_RXCTL, B43_PIO_RXCTL_DATARDY);
+       if (q->rev >= 8)
+               b43_piorx_write32(q, B43_PIO8_RXCTL, B43_PIO8_RXCTL_DATARDY);
+       else
+               b43_piorx_write16(q, B43_PIO_RXCTL, B43_PIO_RXCTL_DATARDY);
+
        return 1;
 }