diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2017-03-28 11:13:46 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-31 15:29:06 +0200 |
commit | cfa6eb239154315e6efcdda1d929e024097f927b (patch) | |
tree | c40e6e3c6f364688e1b037bec850c9f8ddc67cc3 /kernel/printk | |
parent | 5f76895e4c712b1b5af450cf344389b8c53ac2c2 (diff) | |
download | linux-stable-cfa6eb239154315e6efcdda1d929e024097f927b.tar.gz linux-stable-cfa6eb239154315e6efcdda1d929e024097f927b.tar.bz2 linux-stable-cfa6eb239154315e6efcdda1d929e024097f927b.zip |
serial: sh-sci: Fix (AUTO)RTS in sci_init_pins()
If a UART has dedicated RTS/CTS pins, and hardware control flow is
disabled (or AUTORTS is not yet effective), changing any serial port
configuration deasserts RTS, as .set_termios() calls sci_init_pins().
To fix this, consider the current (AUTO)RTS state when (re)initializing
the pins. Note that for SCIFA/SCIFB, AUTORTS needs explicit
configuration of the RTS# pin function, while (H)SCIF handles this
automatically.
Fixes: d2b9775d795ec05f ("serial: sh-sci: Correct pin initialization on (H)SCIF")
Fixes: e9d7a45a03991349 ("serial: sh-sci: Add pin initialization for SCIFA/SCIFB")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/printk')
0 files changed, 0 insertions, 0 deletions