mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
serial: 8250: Fix rs485 delay after console write
Due to a silly copy-paste mistake, commit7f9803072f
("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:7f9803072f
("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>
This commit is contained in:
parent
7cf64b18b0
commit
4e36f94e99
@ -3271,7 +3271,7 @@ void serial8250_console_write(struct uart_8250_port *up, const char *s,
|
|||||||
serial_port_out(port, UART_IER, ier);
|
serial_port_out(port, UART_IER, ier);
|
||||||
|
|
||||||
if (em485) {
|
if (em485) {
|
||||||
mdelay(port->rs485.delay_rts_before_send);
|
mdelay(port->rs485.delay_rts_after_send);
|
||||||
if (em485->tx_stopped)
|
if (em485->tx_stopped)
|
||||||
up->rs485_stop_tx(up);
|
up->rs485_stop_tx(up);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user