serial: sh-sci: Support for variable HSCIF hardware RX timeout
authorUlrich Hecht <ulrich.hecht+renesas@gmail.com>
Fri, 29 Sep 2017 13:08:53 +0000 (15:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Oct 2017 18:34:21 +0000 (20:34 +0200)
commitfa2abb03637a55288b22082d3d679db4fe74112a
treecd442114f48b0ded411e095ca958dcb26f33c4f8
parent62fadbd8f798331d56fdadd3503dc09026ae8d1f
serial: sh-sci: Support for variable HSCIF hardware RX timeout

HSCIF has facilities that allow changing the timeout after which an RX
interrupt is triggered even if the FIFO is not filled. This patch allows
changing the default (15 bits of silence) using the existing sysfs
attribute "rx_fifo_timeout".

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