Skip to contentSkip to conversation

b43-pio: Fix RX error path for rev>=8 devices

PATCH New Michael Buesch 1 participant 1 message Nov 7, 2009 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

drivers/net/wireless/b43/pio.c +5 -1
Index: wireless-testing/drivers/net/wireless/b43/pio.c
===================================================================
@@ -762,7 +762,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;
 }
 
Signature · 1 line
Greetings, Michael.