]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sh-sci: fix hardware RX trigger level setting
authorUlrich Hecht <ulrich.hecht+renesas@gmail.com>
Wed, 8 Feb 2017 17:31:14 +0000 (18:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Feb 2017 14:10:16 +0000 (15:10 +0100)
commit7aeab8cefb8f90316e0353c91a07e72e09a9674c
treede12ae1c357c5c6bcc335db5636d0474e0b7c982
parentb35561d062981ea6f93ca576a451615ce56eca05
serial: sh-sci: fix hardware RX trigger level setting

1. Do not set the RX trigger level for software timeout devices on reset;
there is no timeout by default, and data will rot.
2. Do set the RX trigger level for hardware timeout devices when set
via sysfs attribute.

Fixes SCIFA-type serial consoles.

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