Message ID | 20160623145714.20576-2-martin.blumenstingl@googlemail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 3467f0d433016c45d1851f3587d32816b7b2ffb0 |
Delegated to: | Kalle Valo |
Headers | show |
Martin Blumenstingl <martin.blumenstingl@googlemail.com> wrote: > Some devices running OpenWrt need this and it makes sense to add this > to ath9k_platform_data as the next patches will add a devicetree > (boolean) property for it as well. > > Suggested-by: Vittorio Gambaletta <openwrt@vittgam.net> > Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Thanks, 5 patches applied to ath-next branch of ath.git: 3467f0d43301 ath9k: Allow configuration of LED polarity in platform data. b27301f86cc7 ath9k: remove variable which is set but never read 0cefa9749883 ath9k: ath9k_hw_init_macaddr should not overwrite valid MAC addresses d323cb71abef ath9k: remove return value from ath9k_hw_init_macaddr 28755b8f6d94 ath9k: move all ath9k_platform_data initialization into one function
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 2ee8624..384929d 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -527,6 +527,9 @@ static int ath9k_init_soc_platform(struct ath_softc *sc) return ret; } + if (pdata->led_active_high) + ah->config.led_active_high = true; + if (pdata->tx_gain_buffalo) ah->config.tx_gain_buffalo = true; diff --git a/include/linux/ath9k_platform.h b/include/linux/ath9k_platform.h index e66153d..76860a4 100644 --- a/include/linux/ath9k_platform.h +++ b/include/linux/ath9k_platform.h @@ -40,6 +40,7 @@ struct ath9k_platform_data { bool tx_gain_buffalo; bool disable_2ghz; bool disable_5ghz; + bool led_active_high; int (*get_mac_revision)(void); int (*external_reset)(void);
Some devices running OpenWrt need this and it makes sense to add this to ath9k_platform_data as the next patches will add a devicetree (boolean) property for it as well. Suggested-by: Vittorio Gambaletta <openwrt@vittgam.net> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> --- drivers/net/wireless/ath/ath9k/init.c | 3 +++ include/linux/ath9k_platform.h | 1 + 2 files changed, 4 insertions(+)