]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sh-sci: consider DR (data ready) bit adequately
authorUlrich Hecht <ulrich.hecht+renesas@gmail.com>
Thu, 2 Feb 2017 17:10:15 +0000 (18:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2017 09:14:10 +0000 (10:14 +0100)
commit32580c025fdaf23c9396690e0f282a9fbb4c593b
treef6fcd9b7cc8720b8d750a02af45d498814bc5aea
parenteb7d0d15957433c63cf73c113cf9a0890fe96875
serial: sh-sci: consider DR (data ready) bit adequately

To allow operation with a higher RX FIFO interrupt threshold in PIO
mode, it is necessary to consider the DR bit ("FIFO not full, but no
data received for 1.5 frames") as an indicator that data can be read.
Otherwise the driver will let data rot in the FIFO until the threshold
is reached.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.h