diff mbox series

stm32mp1: Fix warning display when 1.5A power supply is used

Message ID 20200430164105.20486-1-patrice.chotard@st.com
State Accepted
Commit 5eff168470a353f3397a0bf43e87c8830fe5bbbd
Headers show
Series stm32mp1: Fix warning display when 1.5A power supply is used | expand

Commit Message

Patrice CHOTARD April 30, 2020, 4:41 p.m. UTC
On DK1/2 board, when a 1.5A power supply is detected, a warning
message is displayed. In this message, "1.5mA" is displayed instead
of "1.5A".

Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
---

 board/st/stm32mp1/stm32mp1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Patrick Delaunay May 13, 2020, 12:03 p.m. UTC | #1
Hi Patrice

> From: Patrice CHOTARD <patrice.chotard at st.com>
> Sent: jeudi 30 avril 2020 18:41
> 
> On DK1/2 board, when a 1.5A power supply is detected, a warning message is
> displayed. In this message, "1.5mA" is displayed instead of "1.5A".
> 
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> ---
> 
>  board/st/stm32mp1/stm32mp1.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Reviewed-by: Patrick Delaunay <patrick.delaunay at st.com>

Thanks

Patrick
Patrick Delaunay May 14, 2020, 9:33 a.m. UTC | #2
Hi Patrice

> From: Patrice CHOTARD <patrice.chotard at st.com>
> Sent: jeudi 30 avril 2020 18:41
> 
> On DK1/2 board, when a 1.5A power supply is detected, a warning message is
> displayed. In this message, "1.5mA" is displayed instead of "1.5A".
> 
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> ---
> 
>  board/st/stm32mp1/stm32mp1.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Applied to u-boot-stm/master, thanks!

Regards

Patrick
diff mbox series

Patch

diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index 45068b1cd9..a4e4d8e9fe 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -435,7 +435,7 @@  static int board_check_usb_power(void)
 	if (max_uV > USB_WARNING_LOW_THRESHOLD_UV &&
 	    max_uV <= USB_START_LOW_THRESHOLD_UV &&
 	    min_uV <= USB_LOW_THRESHOLD_UV) {
-		pr_err("*       WARNING 1.5mA power supply detected        *\n");
+		pr_err("*       WARNING 1.5A power supply detected        *\n");
 		nb_blink = 3;
 	}