From 56db5e2dc402ec8dd7ba922ec5ae1b450ed95d43 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 10 Mar 2014 14:01:29 +0100 Subject: tty: serial: tegra: initialize with lower baudrate While setup, there is a time the serial port is running on a predefined speed (115200). When data arrived during this phase at a lower baudrate (e.g. 9600), a lot of overrun and break error messages were shown. Due to those messages, the terminal setup never finished, and thus never reached the selected baudrate (e.g. 9600). By choosing a lower baudrate at the startup (9600), a lot less (if any at all) messages are shown and those initialization always succeeds. Another solution would be to disable those messages completely. However, while normal mode its good to have those UART error messages. --- drivers/tty/serial/tegra_hsuart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/tegra_hsuart.c b/drivers/tty/serial/tegra_hsuart.c index b2fa281492a7..3f38cca3d6ec 100644 --- a/drivers/tty/serial/tegra_hsuart.c +++ b/drivers/tty/serial/tegra_hsuart.c @@ -819,7 +819,7 @@ static int tegra_uart_hw_init(struct tegra_uart_port *t) * Initialize the UART for a simple default configuration * so that the receive DMA buffer may be enqueued */ t->lcr_shadow = 3; /* no parity, stop, 8 data bits */ - tegra_set_baudrate(t, 115200); + tegra_set_baudrate(t, 9600); t->fcr_shadow |= UART_FCR_DMA_SELECT; uart_writeb(t, t->fcr_shadow, UART_FCR); if (tegra_start_dma_rx(t)) { -- cgit v1.2.3