diff mbox series

[v2,03/12] board: stm32mp1: Keep error led ON in case of low power detection

Message ID 20200422142834.v2.3.I5954842931a3f46d943b91004a060d6fb5072109@changeid
State Superseded
Headers show
Series stm32mp1: several board and arch updates | expand

Commit Message

Patrick Delaunay April 22, 2020, 12:29 p.m. UTC
From: Patrice Chotard <patrice.chotard at st.com>

Since commit commit dd2810851eb1 ("stm32mp1: board: support of
error led on ed1/ev1 board") the attended behavior was no more
respected in case of low power source detection on DK2.

The expected behavior is either the error LED keeps blinking for ever,
or blinks 2 or 3 times and must stay ON.

Reviewed-by: Patrice Chotard <patrice.chotard at st.com>
Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
---

Changes in v2: None

 board/st/stm32mp1/stm32mp1.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index 45068b1cd9..d85a57cee2 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -316,6 +316,7 @@  static void __maybe_unused led_error_blink(u32 nb_blink)
 			mdelay(125);
 			WATCHDOG_RESET();
 		}
+		led_set_state(led, LEDST_ON);
 	}
 #endif