All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrice CHOTARD <patrice.chotard@foss.st.com>
To: u-boot@lists.denx.de
Subject: [PATCH 1/2] stm32mp: update uart number in trace of serial device not found
Date: Fri, 9 Apr 2021 12:03:01 +0200	[thread overview]
Message-ID: <1b5a2429-1cf9-5dbc-d3e2-a76f39ff344f@foss.st.com> (raw)
In-Reply-To: <20210406092731.1.Iad88039569017850ed77dfae267b261f8efc8ad7@changeid>

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 <patrick.delaunay@foss.st.com>
> ---
> 
>  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));
> 
Applied to u-boot-stm/master

Thanks
Patrice

      parent reply	other threads:[~2021-04-09 10:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-06  7:27 [PATCH 1/2] stm32mp: update uart number in trace of serial device not found Patrick Delaunay
2021-04-06  7:27 ` [PATCH 2/2] stm32mp: replace printf by log macro in setup_boot_mode Patrick Delaunay
2021-04-08 13:57   ` Patrice CHOTARD
2021-04-09 10:03   ` Patrice CHOTARD
2021-04-08 13:56 ` [PATCH 1/2] stm32mp: update uart number in trace of serial device not found Patrice CHOTARD
2021-04-09 10:03 ` Patrice CHOTARD [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1b5a2429-1cf9-5dbc-d3e2-a76f39ff344f@foss.st.com \
    --to=patrice.chotard@foss.st.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.