aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Ryazanov <ryazanov.s.a@gmail.com>2018-10-26 01:22:37 +0300
committerJohn Crispin <john@phrozen.org>2018-11-26 12:05:45 +0100
commit8baad26d01dd1f7c6b30a9eadb68596ee4b4d51f (patch)
tree0b1a16a020b64ac6b18cc0a8021caee337dc05eb
parent38167cb7f41b316fcc6d6bbcab993a2f42f30c0e (diff)
downloadupstream-8baad26d01dd1f7c6b30a9eadb68596ee4b4d51f.tar.gz
upstream-8baad26d01dd1f7c6b30a9eadb68596ee4b4d51f.tar.bz2
upstream-8baad26d01dd1f7c6b30a9eadb68596ee4b4d51f.zip
ar71xx: fix RouterBOARD Power LED default state
RouterBOARD(s) bootloader actully turns Power LED off just before it starts the kernel. So we need to set the LED default status to On instead of Keep in order to keep LED on during kernel boot. This change fixes Power LED off during the kernel boot on the RB91x and SXT Lite boards. Fixes: 6cad8ee0bd ("ar71xx: keep the RouterBOARD Power LED in On state") CC: Mathias Kresin <dev@kresin.me> Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c2
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-rbsxtlite.c2
2 files changed, 2 insertions, 2 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 e240c3ad43..9620718962 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c
@@ -219,7 +219,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,
+ .default_state = LEDS_GPIO_DEFSTATE_ON,
},
};
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 d0e6baea49..7eb0e54151 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rbsxtlite.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rbsxtlite.c
@@ -115,7 +115,7 @@ static struct gpio_led rbsxtlite_leds_gpio[] __initdata = {
{
.name = "rb:green:power",
.gpio = SXTLITE_GPIO_LED_POWER,
- .default_state = LEDS_GPIO_DEFSTATE_KEEP,
+ .default_state = LEDS_GPIO_DEFSTATE_ON,
},
};