]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stm32mp: update uart number in trace of serial device not found
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 6 Apr 2021 07:27:38 +0000 (09:27 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 9 Apr 2021 09:53:00 +0000 (11:53 +0200)
Align the uart number in the trace of setup_boot_mode() with the name of
the uart/usart device (start at 1) and not with the instance value
(start at 0), i.e. the serial device sequence number and the index in
serial_addr[].

Fixes: f49eb16c17e2c ("stm32mp: stm32prog: replace alias by serial
device sequence number")

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/mach-stm32mp/cpu.c

index bc2db535beb09b073433c61ae215193c4efc073f..782df8b7ae74db166fd5a61242266e0e22a81b5d 100644 (file)
@@ -483,7 +483,7 @@ static void setup_boot_mode(void)
                                gd->flags &= ~(GD_FLG_SILENT |
                                               GD_FLG_DISABLE_CONSOLE);
                        printf("uart%d = %s not found in device tree!\n",
-                              instance, cmd);
+                              instance + 1, cmd);
                        break;
                }
                sprintf(cmd, "%d", dev_seq(dev));