serial: st-asc: (De)Register GPIOD and swap Pinctrl profiles
authorLee Jones <lee.jones@linaro.org>
Fri, 3 Feb 2017 10:23:13 +0000 (10:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2017 08:47:52 +0000 (09:47 +0100)
commitd7356256488c544b8fdc2c3a775ce069546d7933
tree6db23c1027c5078765761a331ed8a2e37ba46d49
parent6929cb00a5017633aa54c6a9071cc0abfd573b47
serial: st-asc: (De)Register GPIOD and swap Pinctrl profiles

When hardware flow-control is disabled, manual toggling of the UART's
reset line (RTS) using userland applications (e.g. stty) is not
possible, since the ASC IP does not provide this functionality in the
same was as some other IPs do.  Thus, we have to do this manually.

This patch ensures that when HW flow-control is disabled the RTS/CTS
lines are free to be registered via the GPIO API.  It also ensures
any registered GPIO lines are unregistered when HW flow-control is
requested, allowing the IP to control them automatically.

Acked-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/st-asc.c