]> git.ipfire.org Git - thirdparty/linux.git/commit - drivers/tty/serial/stm32-usart.c
serial: stm32: Use TC interrupt to deassert GPIO RTS in RS485 mode
authorMarek Vasut <marex@denx.de>
Sat, 30 Apr 2022 16:28:45 +0000 (18:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 May 2022 20:37:47 +0000 (22:37 +0200)
commitd7c76716169ddc37cf6316ff381d34ea807fbfd7
tree94de2018a6c5f95b27da9838510180b7344b54e8
parent3bcea529b295a993b1b05db63f245ae8030c5acf
serial: stm32: Use TC interrupt to deassert GPIO RTS in RS485 mode

In case the RS485 mode is emulated using GPIO RTS, use the TC interrupt
to deassert the GPIO RTS, otherwise the GPIO RTS stays asserted after a
transmission ended and the RS485 cannot work.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: Erwan Le Ray <erwan.leray@foss.st.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jean Philippe Romain <jean-philippe.romain@foss.st.com>
Cc: Valentin Caron <valentin.caron@foss.st.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-stm32@st-md-mailman.stormreply.com
To: linux-serial@vger.kernel.org
Link: https://lore.kernel.org/r/20220430162845.244655-2-marex@denx.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c
drivers/tty/serial/stm32-usart.h