From e20965811db65eab98adbd0b73c64f94325dfa23 Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Wed, 12 Apr 2017 08:45:19 +0200 Subject: ar71xx: fix ath9k default LED changes fallout Since 192f0a3db859 ("ath9k: unset the default LED pin if used by platform leds") the default ath9k wireless LED is not set as soon as any pin of the ath ath9k gpio controller is used. All touched boards have leds defined which are using the gpio pins exposed by the ath9k driver but rely on a default set wireless led trigger. Add the wireless leds were missing and setup the wireless phy trigger in userspace. Signed-off-by: Russell Senior Signed-off-by: Mathias Kresin --- target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g300nh2.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g300nh2.c') diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g300nh2.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g300nh2.c index 296551348f..c44a9cf770 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g300nh2.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g300nh2.c @@ -74,6 +74,11 @@ static struct gpio_led wzrhpg300nh2_wmac_leds_gpio[] = { .gpio = 4, .active_low = 1, }, + { + .name = "buffalo:green:wireless", + .gpio = 5, + .active_low = 1, + }, { .name = "buffalo:orange:security", .gpio = 6, @@ -159,7 +164,6 @@ static void __init wzrhpg300nh2_setup(void) ath79_register_gpio_keys_polled(-1, WZRHPG300NH2_KEYS_POLL_INTERVAL, ARRAY_SIZE(wzrhpg300nh2_gpio_keys), wzrhpg300nh2_gpio_keys); - ap9x_pci_setup_wmac_led_pin(0, 5); ap9x_pci_setup_wmac_leds(0, wzrhpg300nh2_wmac_leds_gpio, ARRAY_SIZE(wzrhpg300nh2_wmac_leds_gpio)); -- cgit v1.2.3