aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/tty/serial/amba-pl011.c
diff options
context:
space:
mode:
authorLino Sanfilippo <LinoSanfilippo@gmx.de>2022-04-10 12:46:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-15 11:30:21 +0200
commit0ed12afa5655512ee418047fb3546d229df20aa1 (patch)
tree59ecd38227879d138e868183e07e69a08755a31f /drivers/tty/serial/amba-pl011.c
parenttty: serial: meson: Use DIV_ROUND_CLOSEST to calculate baud rates (diff)
downloadwireguard-linux-0ed12afa5655512ee418047fb3546d229df20aa1.tar.xz
wireguard-linux-0ed12afa5655512ee418047fb3546d229df20aa1.zip
serial: core: move RS485 configuration tasks from drivers into core
Several drivers that support setting the RS485 configuration via userspace implement one or more of the following tasks: - in case of an invalid RTS configuration (both RTS after send and RTS on send set or both unset) fall back to enable RTS on send and disable RTS after send - nullify the padding field of the returned serial_rs485 struct - copy the configuration into the uart port struct - limit RTS delays to 100 ms Move these tasks into the serial core to make them generic and to provide a consistent behaviour among all drivers. Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de> Link: https://lore.kernel.org/r/20220410104642.32195-2-LinoSanfilippo@gmx.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/amba-pl011.c')
0 files changed, 0 insertions, 0 deletions