ARM: 6764/1: pl011: factor out FIFO to TTY code
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 24 Feb 2011 12:21:36 +0000 (13:21 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 10 Mar 2011 10:07:24 +0000 (10:07 +0000)
commit29772c4e28cbb33ea1f8c6dcd130ebf190b91d85
tree17042eda647a9576055f7355fc179595fe429a55
parentead76f329f777c7301e0a5456a0a1c7a081570bd
ARM: 6764/1: pl011: factor out FIFO to TTY code

This piece of code was just slightly different between the DMA
and IRQ paths, in DMA mode we surely shouldn't read more than
256 character either, so factor this out in its own function and
use for both DMA and PIO mode.

Tested on Ux500 and U300.

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