From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrice CHOTARD Date: Thu, 8 Apr 2021 15:56:38 +0200 Subject: [PATCH 1/2] stm32mp: update uart number in trace of serial device not found In-Reply-To: <20210406092731.1.Iad88039569017850ed77dfae267b261f8efc8ad7@changeid> References: <20210406092731.1.Iad88039569017850ed77dfae267b261f8efc8ad7@changeid> Message-ID: <89413d72-9cf3-c208-7094-3d057710351f@foss.st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Patrick On 4/6/21 9:27 AM, Patrick Delaunay wrote: > 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 > --- > > arch/arm/mach-stm32mp/cpu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm32mp/cpu.c > index 897ec13ad8..2f05c5e91b 100644 > --- a/arch/arm/mach-stm32mp/cpu.c > +++ b/arch/arm/mach-stm32mp/cpu.c > @@ -503,7 +503,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)); > Reviewed-by: Patrice Chotard Thanks Patrice