serial: sh-sci: Correct pin initialization on (H)SCIF
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 3 Jun 2016 10:00:08 +0000 (12:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2016 16:07:51 +0000 (09:07 -0700)
commitd2b9775d795ec05fb42504c0f47dd06ba5fd709e
treef9b850860765e90195a6013264432ef5413084bd
parent4780c09f7a0926674c96c0a40dfeb7469f759c8e
serial: sh-sci: Correct pin initialization on (H)SCIF

Correct pin initialization on (H)SCIF:
  - RTS must be deasserted (it's active low),
  - SCK must be an input, as it may be used as the optional external
    clock input.

Initial pin configuration must always be done:
  - Regardless of the presence of dedicated RTS and CTS pins: if the
    register exists, the RTS/CTS bits exist, too,
  - Regardless of hardware flow control being enabled or not: RTS must
    be deasserted.

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