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)
commit88641c79c501735efe3b638ccad57ec077ed47f7
treef6fcd9b7cc8720b8d750a02af45d498814bc5aea
parent54e14ae2f3e82b327853e40afa9382a984a56742
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