ath9k_hw: Set proper eeprom offset for AR9287 HTC devices
AR9287 based PCI & USB devices are differed in eeprom start offset. So set proper the offset for HTC devices to read nvram correctly. Cc: stable@kernel.org Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
7cbf2611da
commit
b5261cf4f3
@@ -37,7 +37,7 @@ static bool ath9k_hw_ar9287_fill_eeprom(struct ath_hw *ah)
|
|||||||
int addr, eep_start_loc;
|
int addr, eep_start_loc;
|
||||||
eep_data = (u16 *)eep;
|
eep_data = (u16 *)eep;
|
||||||
|
|
||||||
if (ah->hw_version.devid == 0x7015)
|
if (AR9287_HTC_DEVID(ah))
|
||||||
eep_start_loc = AR9287_HTC_EEP_START_LOC;
|
eep_start_loc = AR9287_HTC_EEP_START_LOC;
|
||||||
else
|
else
|
||||||
eep_start_loc = AR9287_EEP_START_LOC;
|
eep_start_loc = AR9287_EEP_START_LOC;
|
||||||
|
@@ -870,6 +870,10 @@
|
|||||||
((_ah)->hw_version.devid == 0xA704) || \
|
((_ah)->hw_version.devid == 0xA704) || \
|
||||||
((_ah)->hw_version.devid == 0x1200))
|
((_ah)->hw_version.devid == 0x1200))
|
||||||
|
|
||||||
|
#define AR9287_HTC_DEVID(_ah) \
|
||||||
|
(((_ah)->hw_version.devid == 0x7015) || \
|
||||||
|
((_ah)->hw_version.devid == 0x1200))
|
||||||
|
|
||||||
#define AR_RADIO_SREV_MAJOR 0xf0
|
#define AR_RADIO_SREV_MAJOR 0xf0
|
||||||
#define AR_RAD5133_SREV_MAJOR 0xc0
|
#define AR_RAD5133_SREV_MAJOR 0xc0
|
||||||
#define AR_RAD2133_SREV_MAJOR 0xd0
|
#define AR_RAD2133_SREV_MAJOR 0xd0
|
||||||
|
Reference in New Issue
Block a user