]> git.baikalelectronics.ru Git - kernel.git/commit
serial: samsung: introduce s3c24xx_serial_rx_drain_fifo() function
authorRobert Baldyga <r.baldyga@samsung.com>
Tue, 15 Sep 2015 12:48:59 +0000 (14:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 16:44:52 +0000 (17:44 +0100)
commit8aeed8d1e1efab61ba235f8ef5cc18df0b0235c0
tree75b8cd5736f195a70e234c8e6e6bbcf4204aa676
parent17076b2c8ee8d31fe271e853ddd96de36f0efb85
serial: samsung: introduce s3c24xx_serial_rx_drain_fifo() function

This patch introduces s3c24xx_serial_rx_drain_fifo() which reads data
from RX FIFO and writes it to tty buffer. It also checks for special
conditions (such as 'break') and handles it. This function has been
separated from s3c24xx_serial_rx_chars_pio() as it contains code which
can be used also in DMA mode.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung.c