diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2014-11-16 03:41:02 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-11-17 23:32:16 +0300 |
commit | aeeb2065794361f823e17a20af0db18b3a369845 (patch) | |
tree | 04fb73ce164d0f29b26c314516b06b0fd1790b48 /drivers/net/wireless/ath/ath9k/init.c | |
parent | 46270d077a761e72fc6ea5ec5a76c5ef2e61782b (diff) | |
download | linux-aeeb2065794361f823e17a20af0db18b3a369845.tar.xz |
ath9k: Fix LED configuration
On some x86 platforms, the LED gpio is active high
instead of active low. Identify such cards and modify
the GPIO usage to make sure LED works properly.
Cc: Russell Hu <rhu@qca.qualcomm.com>
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 41736e5a49e0..39157ca723d6 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -441,6 +441,9 @@ static void ath9k_init_pcoem_platform(struct ath_softc *sc) ah->config.no_pll_pwrsave = true; ath_info(common, "Disable PLL PowerSave\n"); } + + if (sc->driver_data & ATH9K_PCI_LED_ACT_HI) + ah->config.led_active_high = true; } static void ath9k_eeprom_request_cb(const struct firmware *eeprom_blob, |