]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sh-sci: Use tty_insert_flip_string() for DMA receive
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 21 Aug 2015 18:02:52 +0000 (20:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 16:33:48 +0000 (17:33 +0100)
commit9c239390ab661fa931c56a0aef90dc62bfa83dd0
tree5da0d815c8934ff7ee62289190baa32dc1be1a4d
parent28322963c59ffe7cf2820ade66fbc9ac04020cb6
serial: sh-sci: Use tty_insert_flip_string() for DMA receive

Switch from using tty_buffer_request_room() and looping over
tty_insert_flip_char() to tty_insert_flip_string().
Keep track of buffer overruns in the icount structure, like
serial_core.c does.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c