|
@@ -308,9 +308,6 @@ static void men_z135_handle_tx(struct men_z135_port *uart)
|
|
if (port->x_char)
|
|
if (port->x_char)
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
- if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
|
|
|
|
- uart_write_wakeup(port);
|
|
|
|
-
|
|
|
|
/* calculate bytes to copy */
|
|
/* calculate bytes to copy */
|
|
qlen = uart_circ_chars_pending(xmit);
|
|
qlen = uart_circ_chars_pending(xmit);
|
|
if (qlen <= 0)
|
|
if (qlen <= 0)
|
|
@@ -357,6 +354,9 @@ static void men_z135_handle_tx(struct men_z135_port *uart)
|
|
|
|
|
|
port->icount.tx += n;
|
|
port->icount.tx += n;
|
|
|
|
|
|
|
|
+ if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
|
|
|
|
+ uart_write_wakeup(port);
|
|
|
|
+
|
|
irq_en:
|
|
irq_en:
|
|
if (!uart_circ_empty(xmit))
|
|
if (!uart_circ_empty(xmit))
|
|
men_z135_reg_set(uart, MEN_Z135_CONF_REG, MEN_Z135_IER_TXCIEN);
|
|
men_z135_reg_set(uart, MEN_Z135_CONF_REG, MEN_Z135_IER_TXCIEN);
|