Commit f06c2a90 authored by Biju Das's avatar Biju Das Committed by Greg Kroah-Hartman
Browse files

tty: serial: sh-sci: Fix end of transmission on SCI



We need to set TE to "0" (i.e., disable serial transmission) to
get the expected behavior of the end of serial transmission.

Signed-off-by: default avatarBiju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230412145053.114847-6-biju.das.jz@bp.renesas.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d61ae331
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -847,6 +847,11 @@ static void sci_transmit_chars(struct uart_port *port)
		} else if (!uart_circ_empty(xmit) && !stopped) {
			c = xmit->buf[xmit->tail];
			xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
		} else if (port->type == PORT_SCI && uart_circ_empty(xmit)) {
			ctrl = serial_port_in(port, SCSCR);
			ctrl &= ~SCSCR_TE;
			serial_port_out(port, SCSCR, ctrl);
			return;
		} else {
			break;
		}