]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: PL011: Separate hardware FIFO size from TTY FIFO size
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 22 Dec 2010 17:13:05 +0000 (17:13 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 5 Jan 2011 16:58:45 +0000 (16:58 +0000)
commite993a2571f7d7af16b12214dedb08537393c2715
tree976cffca5c682bcec045ab9f52456854474930a3
parenta452063e9d9dec1fd555c225696e3af4866027a1
ARM: PL011: Separate hardware FIFO size from TTY FIFO size

With DMA support, we need to tell the TTY subsystem that the DMA buffer
is the size of the FIFO, otherwise things like tty_wait_until_sent()
will time out too early.  Keep (and use) the hardware value separately
from the port->fifosize.

This was part of a larger patch from Linus Walleij, with a little
modification.

Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/serial/amba-pl011.c