Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

serial: 8250: Fix rs485 delay after console write

Due to a silly copy-paste mistake, commit 7f9803072ff6 ("serial: 8250:
Support console on software emulated rs485 ports") erroneously pauses
for the duration of delay_rts_before_send after writing to the console,
instead of delay_rts_after_send. Mea culpa.

Fixes: 7f9803072ff6 ("serial: 8250: Support console on software emulated rs485 ports")
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Link: https://lore.kernel.org/r/9dd67f33c90d23f7fafa3b81b1e812ddabf9ca24.1585319447.git.lukas@wunner.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Lukas Wunner and committed by
Greg Kroah-Hartman
4e36f94e 7cf64b18

+1 -1
+1 -1
drivers/tty/serial/8250/8250_port.c
··· 3271 3271 serial_port_out(port, UART_IER, ier); 3272 3272 3273 3273 if (em485) { 3274 - mdelay(port->rs485.delay_rts_before_send); 3274 + mdelay(port->rs485.delay_rts_after_send); 3275 3275 if (em485->tx_stopped) 3276 3276 up->rs485_stop_tx(up); 3277 3277 }