ath9k: Fix LED gpio for AR93xx chipsets.
authorSenthil Balasubramanian <senthilkumar@atheros.com>
Fri, 22 Apr 2011 06:02:08 +0000 (11:32 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Apr 2011 18:50:17 +0000 (14:50 -0400)
The LED gpio is incorrectly programmed for AR9300 and so the led
is not working propelry. AR93xx uses gpio 10 for LED and not the
default.

Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/gpio.c

index a6b538802251ae4108fd1ac4027bcf66c5b2da70..5ebfc57c3110f3febc79a0e1b9839a8f3523a79f 100644 (file)
@@ -453,6 +453,7 @@ void ath9k_btcoex_timer_pause(struct ath_softc *sc);
 
 #define ATH_LED_PIN_DEF                1
 #define ATH_LED_PIN_9287               8
+#define ATH_LED_PIN_9300               10
 #define ATH_LED_PIN_9485               6
 
 #ifdef CONFIG_MAC80211_LEDS
index cc5fad6a4019cd23f3d498035dea1a8397ffa7df..2c59452a7207978f4a0046e48c63d952038e716e 100644 (file)
@@ -46,6 +46,8 @@ void ath_init_leds(struct ath_softc *sc)
                        sc->sc_ah->led_pin = ATH_LED_PIN_9287;
                else if (AR_SREV_9485(sc->sc_ah))
                        sc->sc_ah->led_pin = ATH_LED_PIN_9485;
+               else if (AR_SREV_9300(sc->sc_ah))
+                       sc->sc_ah->led_pin = ATH_LED_PIN_9300;
                else
                        sc->sc_ah->led_pin = ATH_LED_PIN_DEF;
        }