aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files
diff options
context:
space:
mode:
authorSergey Ryazanov <ryazanov.s.a@gmail.com>2017-07-14 11:58:54 +0300
committerMathias Kresin <dev@kresin.me>2017-07-20 19:10:29 +0200
commit6cad8ee0bdf0f91701f7b29d8b6ffeb4437af29e (patch)
tree60b895bed610b558acc340b68d7c55a3291b2aea /target/linux/ar71xx/files
parenta4c84b2d734f0cba40b3d0a2183dbf221e7356e5 (diff)
downloadupstream-6cad8ee0bdf0f91701f7b29d8b6ffeb4437af29e.tar.gz
upstream-6cad8ee0bdf0f91701f7b29d8b6ffeb4437af29e.tar.bz2
upstream-6cad8ee0bdf0f91701f7b29d8b6ffeb4437af29e.zip
ar71xx: keep the RouterBOARD Power LED in On state
It is quite unexpected behaviour when the Power LED switches off as soon as the kernel starts booting. So set the default state to 'Keep' for the Power LEDs of all RouterBOARDs (e.g. RB91x, SXT Lite series, etc.). Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> [switch the default state to keep instead of on] Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c1
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-rbsxtlite.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c
index e37b73fd00..ba4da85530 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c
@@ -214,6 +214,7 @@ static struct gpio_led rb711gr100_leds[] __initdata = {
.name = "rb:green:power",
.gpio = RB91X_GPIO_LED_POWER,
.active_low = 0,
+ .default_state = LEDS_GPIO_DEFSTATE_KEEP,
},
};
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rbsxtlite.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rbsxtlite.c
index 78daa3efee..62063e06a2 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rbsxtlite.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rbsxtlite.c
@@ -109,6 +109,7 @@ static struct gpio_led rbsxtlite_leds_gpio[] __initdata = {
{
.name = "rb:green:power",
.gpio = SXTLITE_GPIO_LED_POWER,
+ .default_state = LEDS_GPIO_DEFSTATE_KEEP,
},
};