Skip to contentSkip to conversation

ath5k: Preserve pcicfg bits during attach

PATCH New Nick Kossifidis 1 participant 1 message Aug 10, 2009 Atheros ATH5K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 4/5 ath5k: Preserve pcicfg bits during attach

* During attach preserve pcicfg bits when enabling pci core sw retry fix.

---
 drivers/net/wireless/ath/ath5k/attach.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/ath/ath5k/attach.c +1 -1
index 238eeb7..65d438b 100644
@@ -261,7 +261,7 @@ struct ath5k_hw *ath5k_hw_attach(struct ath5k_softc *sc, u8 mac_version)
 
 	/* Enable pci core retry fix on Hainan (5213A) and later chips */
 	if (srev >= AR5K_SREV_AR5213A)
-		ath5k_hw_reg_write(ah, AR5K_PCICFG_RETRY_FIX, AR5K_PCICFG);
+		AR5K_REG_ENABLE_BITS(ah, AR5K_PCICFG, AR5K_PCICFG_RETRY_FIX);
 
 	/*
 	 * Get card capabilities, calibration values etc