[PATCH v2 2/2] powerpc/shared/console: "termios" first open sets console baud to 9600
Gedare Bloom
gedare at rtems.org
Tue Apr 27 16:42:58 UTC 2021
On Sat, Apr 10, 2021 at 6:41 AM <dufault at hda.com> wrote:
>
> From: Peter Dufault <dufault at hda.com>
>
> When the PowerPC shared console baud rate starts at anything other than
> 9600 the termios code will set it to 9600 at the first open.
> ---
> bsps/powerpc/shared/console/uart.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/bsps/powerpc/shared/console/uart.c b/bsps/powerpc/shared/console/uart.c
> index 41db52f..f30b6a3 100644
> --- a/bsps/powerpc/shared/console/uart.c
> +++ b/bsps/powerpc/shared/console/uart.c
> @@ -536,6 +536,9 @@ BSP_uart_termios_set(int uart, void *p)
>
> uart_data[uart].ioMode = ttyp->device.outputUsesInterrupts;
>
> + /* Convert from the baud number to the "speed_t" termios setting. */
> + ttyp->termios.c_ispeed = ttyp->termios.c_ospeed = rtems_termios_number_to_baud(uart_data[uart].baud);
break line length <80c
Resend both patches in v2. I have no complaints about the first patch.
> +
> return;
> }
>
> --
> 1.8.3.1
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
More information about the devel
mailing list