serial: sh-sci: fix hardware RX trigger level setting
commit90afa5255f5c5ae67c869918e4c5f60b8580db70
authorUlrich Hecht <ulrich.hecht+renesas@gmail.com>
Wed, 8 Feb 2017 17:31:14 +0000 (8 18:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Feb 2017 14:10:16 +0000 (10 15:10 +0100)
treede12ae1c357c5c6bcc335db5636d0474e0b7c982
parent6a5f0e2f9352accf857f683518bd3cc6ef6ae6c6
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