]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit14bf4cdcabf09d30db23beb0f384f2b59b79a70f
tree6db23c1027c5078765761a331ed8a2e37ba46d49
parent4b2abc4f5e1163faa86d5a08e337cc82e65eb7a4
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