Skip to contentSkip to conversation

tty/serial: atmel: reschedule TX after RX was started

PATCH New Razvan Stefanescu 1 participant 1 message Aug 13, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tty/serial: atmel: reschedule TX after RX was started

When half-duplex RS485 communication is used, after RX is started, TX tasklet still needs to be scheduled tasklet. This avoids console freezing when more data is to be transmitted, if the serial communication is not closed.

Fixes 69646d7a3689 ("tty/serial: atmel: RS485 HD w/DMA: enable RX after TX is stopped")
---
 drivers/tty/serial/atmel_serial.c | 1 -
 1 file changed, 1 deletion(-)
drivers/tty/serial/atmel_serial.c +0 -1
index 0b4f36905321..8e667967928a 100644
@@ -1400,7 +1400,6 @@ atmel_handle_transmit(struct uart_port *port, unsigned int pending)
 
 			atmel_port->hd_start_rx = false;
 			atmel_start_rx(port);
-			return;
 		}
 
 		atmel_tasklet_schedule(atmel_port, &atmel_port->tasklet_tx);
Signature · 1 line
2.20.1