diff options
Diffstat (limited to 'drivers/tty/serial/sh-sci.c')
| -rw-r--r-- | drivers/tty/serial/sh-sci.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 060fcd42b6d5..2d1c626312cd 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c | |||
| @@ -838,19 +838,9 @@ static void sci_transmit_chars(struct uart_port *port) | |||
| 838 | 838 | ||
| 839 | if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) | 839 | if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) |
| 840 | uart_write_wakeup(port); | 840 | uart_write_wakeup(port); |
| 841 | if (uart_circ_empty(xmit)) { | 841 | if (uart_circ_empty(xmit)) |
| 842 | sci_stop_tx(port); | 842 | sci_stop_tx(port); |
| 843 | } else { | ||
| 844 | ctrl = serial_port_in(port, SCSCR); | ||
| 845 | |||
| 846 | if (port->type != PORT_SCI) { | ||
| 847 | serial_port_in(port, SCxSR); /* Dummy read */ | ||
| 848 | sci_clear_SCxSR(port, SCxSR_TDxE_CLEAR(port)); | ||
| 849 | } | ||
| 850 | 843 | ||
| 851 | ctrl |= SCSCR_TIE; | ||
| 852 | serial_port_out(port, SCSCR, ctrl); | ||
| 853 | } | ||
| 854 | } | 844 | } |
| 855 | 845 | ||
| 856 | /* On SH3, SCIF may read end-of-break as a space->mark char */ | 846 | /* On SH3, SCIF may read end-of-break as a space->mark char */ |
