[PATCH] serial: Set baudrate on boot

Simon Glass sjg at chromium.org
Mon Feb 3 01:04:08 CET 2020


Hi Sean,

On Sun, 2 Feb 2020 at 11:15, Sean Anderson <seanga2 at gmail.com> wrote:
>
> Currently, the baud rate is never set on boot. This works ok when a previous
> bootloader has configured the baudrate properly, or when the baudrate is set to
> a reasonable default in the serial driver's probe(). However, when this is not
> the case, we could be using a different baud rate than what was configured.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>  drivers/serial/serial-uclass.c | 1 +
>  1 file changed, 1 insertion(+)

This looks right to me.

Can you please update the docs for setbrg() in serial.h to mention
that this method is always called after probing, so there is now no
need to set the baud rate in the probe() method?


More information about the U-Boot mailing list