Powerpc 8xx CPM_UART setting MAXIDL register proportionaly to baud rate
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 24 Sep 2012 06:39:44 +0000 (08:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2012 20:39:39 +0000 (13:39 -0700)
commit6e62bdc07e1b397704354cf3bd58950943ecaaf1
tree71f6170d74ffa166ad1e70a22c066eda76412788
parentfbbb9d9646f04768d0176f75e7fc93d29457b5db
Powerpc 8xx CPM_UART setting MAXIDL register proportionaly to baud rate

MAXIDL is the timeout after which a receive buffer is closed when not full if
no more characters are received. We calculate it from the baudrate so that the
duration is always the same at standard rates: about 4ms. At 9600 bauds it gives
a timeout of 4 characters, which is the timeout on the 8250 UART.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/cpm_uart/cpm_uart_core.c