Skip to content

Commit 4e36f94

Browse files
l1kgregkh
authored andcommitted
serial: 8250: Fix rs485 delay after console write
Due to a silly copy-paste mistake, commit 7f98030 ("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: 7f98030 ("serial: 8250: Support console on software emulated rs485 ports") Signed-off-by: Lukas Wunner <[email protected]> Link: https://lore.kernel.org/r/9dd67f33c90d23f7fafa3b81b1e812ddabf9ca24.1585319447.git.lukas@wunner.de Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7cf64b1 commit 4e36f94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/8250/8250_port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3271,7 +3271,7 @@ void serial8250_console_write(struct uart_8250_port *up, const char *s,
32713271
serial_port_out(port, UART_IER, ier);
32723272

32733273
if (em485) {
3274-
mdelay(port->rs485.delay_rts_before_send);
3274+
mdelay(port->rs485.delay_rts_after_send);
32753275
if (em485->tx_stopped)
32763276
up->rs485_stop_tx(up);
32773277
}

0 commit comments

Comments
 (0)