Skip to contentSkip to conversation

adm8211: Switch to eeprom_93cx6

PATCH In review Michael Wu 2 participants 3 messages Aug 31, 2007 – Sep 1, 2007 Networking drivers (wireless)

lore
Share & tools
lore

Michael Wu

author
#0 lore raw

PATCH 1/6 adm8211: Switch to eeprom_93cx6

From: Michael Wu <[email protected]>

This makes adm8211 use the eeprom_93cx6 library.

---

 drivers/net/wireless/Kconfig   |    3 +
 drivers/net/wireless/adm8211.c |   85 ++++++++++++++++------------------------
 2 files changed, 37 insertions(+), 51 deletions(-)
drivers/net/wireless/Kconfig +2 -1
index f14f04c..b73a751 100644
@@ -560,8 +560,9 @@ config RTL8187
 
 config ADM8211
 	tristate "ADMtek ADM8211 support"
-	depends on PCI && WLAN_80211 && MAC80211 && EXPERIMENTAL
+	depends on MAC80211 && PCI && WLAN_80211 && EXPERIMENTAL
 	select CRC32
+	select EEPROM_93CX6
 	---help---
 	  This driver is for ADM8211A, ADM8211B, and ADM8211C based cards.
 	  These are PCI/mini-PCI/Cardbus 802.11b chips found in cards such as:
drivers/net/wireless/adm8211.c +35 -50

127 lines not on this page · raw message

#1 lore raw

drivers/net/wireless/adm8211.c struct adm8211_tx_hdr { · line 137

Quoted 3 lines
drivers/net/wireless/adm8211.c +3 -0
+	ADM8211_CSR_WRITE(SPR, reg);
+	ADM8211_CSR_READ(SPR);		// eeprom_delay
+}

Is this extra delay needed? eeprom_93cx6 also performs a ndelay(450) during each pulse

Ivo

author
#2 lore raw
Quoted 6 lines · Ivo van Doorn

drivers/net/wireless/adm8211.c struct adm8211_tx_hdr { · line 137

Quoted 3 lines
drivers/net/wireless/adm8211.c +3 -0
+	ADM8211_CSR_WRITE(SPR, reg);
+	ADM8211_CSR_READ(SPR);		// eeprom_delay
+}

Is this extra delay needed? eeprom_93cx6 also performs a ndelay(450) during each pulse

It's required to ensure the data reaches the card, at the very least. I'm not sure if the read causes the hardware to do any sort of delay, if that's possible, but the previous eeprom reading code indicated that it did and didn't bother to do any actual delays.

-Michael Wu