From: Michael Buesch Date: Sat, 7 Nov 2009 17:54:22 +0000 (+0100) Subject: b43-pio: Fix RX error path for rev>=8 devices X-Git-Tag: v3.12-rc1~12159^2~280^2~103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c286181d5bfd8703219b954284143cfadff60b9b;p=kernel%2Fkernel-generic.git b43-pio: Fix RX error path for rev>=8 devices This fixes the RX error path for rev>=8 devices. The wrong register size and definitions were used. Signed-off-by: Michael Buesch Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/b43/pio.c b/drivers/net/wireless/b43/pio.c index 3105f23..7d25502 100644 --- a/drivers/net/wireless/b43/pio.c +++ b/drivers/net/wireless/b43/pio.c @@ -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; }