]> git.karo-electronics.de Git - linux-beck.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)
commitffca2b114c6a804d1307781df687e877a373a1c2
tree976cffca5c682bcec045ab9f52456854474930a3
parentc19f12b5ef3adf3c139eabbe3d3d0201838b77b1
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