Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

SERIAL: Lantiq: Set timeout in uart_port

Without this patch apps using readline hang.

Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: linux-serial@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/2687/
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

John Crispin and committed by
Ralf Baechle
b7867f1b 05969546

+3 -1
+3 -1
drivers/tty/serial/lantiq.c
··· 478 478 spin_unlock_irqrestore(&ltq_asc_lock, flags); 479 479 480 480 /* Don't rewrite B0 */ 481 - if (tty_termios_baud_rate(new)) 481 + if (tty_termios_baud_rate(new)) 482 482 tty_termios_encode_baud_rate(new, baud, baud); 483 + 484 + uart_update_timeout(port, cflag, baud); 483 485 } 484 486 485 487 static const char*