linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH tty-next 1/2] serial: 8250: Fix rs485 delay after console write
@ 2020-03-26 12:20 Lukas Wunner
  2020-03-26 12:20 ` [PATCH tty-next 2/2] serial: 8250: Optimize irq enable " Lukas Wunner
  2020-03-26 14:40 ` [PATCH tty-next 1/2] serial: 8250: Fix rs485 delay " Greg Kroah-Hartman
  0 siblings, 2 replies; 4+ messages in thread
From: Lukas Wunner @ 2020-03-26 12:20 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby
  Cc: Matwey V. Kornilov, Heiko Schocher, Giulio Benetti,
	Uwe Kleine-Koenig, Stefan Wahren, Martin Sperl, Heiko Stuebner,
	linux-serial

Due to a silly copy-paste mistake, commit 6194c38fc20d ("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: 6194c38fc20d ("serial: 8250: Support console on software emulated rs485 ports")
Signed-off-by: Lukas Wunner <lukas@wunner.de>
---
 drivers/tty/serial/8250/8250_port.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c
index 2f973280c34a..a1d3aef3c406 100644
--- a/drivers/tty/serial/8250/8250_port.c
+++ b/drivers/tty/serial/8250/8250_port.c
@@ -3271,7 +3271,7 @@ void serial8250_console_write(struct uart_8250_port *up, const char *s,
 	serial_port_out(port, UART_IER, ier);
 
 	if (em485) {
-		mdelay(port->rs485.delay_rts_before_send);
+		mdelay(port->rs485.delay_rts_after_send);
 		if (em485->tx_stopped)
 			up->rs485_stop_tx(up);
 	}
-- 
2.25.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-26 15:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-26 12:20 [PATCH tty-next 1/2] serial: 8250: Fix rs485 delay after console write Lukas Wunner
2020-03-26 12:20 ` [PATCH tty-next 2/2] serial: 8250: Optimize irq enable " Lukas Wunner
2020-03-26 14:40 ` [PATCH tty-next 1/2] serial: 8250: Fix rs485 delay " Greg Kroah-Hartman
2020-03-26 15:05   ` Lukas Wunner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).