]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: add support for endian swap of eeprom from platform data
authorFelix Fietkau <nbd@openwrt.org>
Sat, 25 Oct 2014 15:19:33 +0000 (17:19 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Oct 2014 18:16:19 +0000 (14:16 -0400)
commite32685aba47be9a0451dbf737fd4e768f4674a4d
tree4289421c3a2c5cde45d6272360e1aaaafbb11402
parenta06ba41a792a277b4aa4e18b7b662e5620e0d50c
ath9k: add support for endian swap of eeprom from platform data

On some devices (especially little-endian ones), the flash EEPROM data
has a different endian, which needs to be detected.
Add a flag to the platform data to allow overriding that behavior

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/eeprom_def.c
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/init.c
include/linux/ath9k_platform.h