]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/serial/ucc_uart.c: Add missing call to init UCC UART port timeout
authorChuck Meade <chuck@ThePTRGroup.com>
Fri, 18 Jun 2010 13:22:26 +0000 (09:22 -0400)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 24 Nov 2011 08:23:45 +0000 (02:23 -0600)
commitd637c576861df799b938d3ca5fe92237b7980257
treefc2ac3d6fdf0739b882976a37a8f949b10037c5b
parent68d40fa92ee3056992a0a40fe25a50857617dded
drivers/serial/ucc_uart.c: Add missing call to init UCC UART port timeout

The UCC UART driver is missing a call to uart_update_timeout().
Without this call, attempting to close the port after outputting large
amounts of data (i.e. using tty and uart buffering) results in long
timeouts before the port will actually be shut down.

For example, cat a large file to a UCC UART port.  With the current
driver, the port will stay open for 30 seconds after the last byte
of data is output.  But with this patch, the port is closed as
expected, just after the data has been output (tx fifos empty).

Signed-off-by: Chuck Meade <chuck@ThePTRGroup.com>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
drivers/tty/serial/ucc_uart.c