linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] ath9k: Fix LED gpio for AR93xx chipsets.
@ 2011-04-22  6:02 Senthil Balasubramanian
  2011-04-22  6:02 ` [PATCH 2/5] ath9k_hw: Fix incorrect baseband PLL phase shift for AR9485 Senthil Balasubramanian
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Senthil Balasubramanian @ 2011-04-22  6:02 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, Senthil Balasubramanian

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>
---
 drivers/net/wireless/ath/ath9k/ath9k.h |    1 +
 drivers/net/wireless/ath/ath9k/gpio.c  |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h
index a6b5388..5ebfc57 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -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
diff --git a/drivers/net/wireless/ath/ath9k/gpio.c b/drivers/net/wireless/ath/ath9k/gpio.c
index 44a0a88..3e617e7 100644
--- a/drivers/net/wireless/ath/ath9k/gpio.c
+++ b/drivers/net/wireless/ath/ath9k/gpio.c
@@ -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;
 	}
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-04-22  6:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-22  6:02 [PATCH 1/5] ath9k: Fix LED gpio for AR93xx chipsets Senthil Balasubramanian
2011-04-22  6:02 ` [PATCH 2/5] ath9k_hw: Fix incorrect baseband PLL phase shift for AR9485 Senthil Balasubramanian
2011-04-22  6:02 ` [PATCH 3/5] ath9k: optimize the usage of power save wrappers Senthil Balasubramanian
2011-04-22  6:02 ` [PATCH 4/5] ath9k: cleanup hw pll work handler Senthil Balasubramanian
2011-04-22  6:02 ` [PATCH 5/5] ath9k: Add power save wrappers and modularize hw_pll handler Senthil Balasubramanian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).