Merge branches 'stable/hvc-console', 'stable/gntalloc.v6' and 'stable/balloon' of...
[deliverable/linux.git] / drivers / tty / serial / sh-sci.c
index 0257fd5ede52bf0e6d6ea5d329d9d17ae11768a1..eb7958c675a80c7989ffeaced1fe65ef37ce0f6e 100644 (file)
@@ -1504,6 +1504,9 @@ static void sci_set_termios(struct uart_port *port, struct ktermios *termios,
        if (likely(baud && port->uartclk))
                t = sci_scbrr_calc(s->cfg->scbrr_algo_id, baud, port->uartclk);
 
+       if (s->enable)
+               s->enable(port);
+
        do {
                status = sci_in(port, SCxSR);
        } while (!(status & SCxSR_TEND(port)));
@@ -1571,6 +1574,9 @@ static void sci_set_termios(struct uart_port *port, struct ktermios *termios,
 
        if ((termios->c_cflag & CREAD) != 0)
                sci_start_rx(port);
+
+       if (s->disable)
+               s->disable(port);
 }
 
 static const char *sci_type(struct uart_port *port)
This page took 0.025723 seconds and 5 git commands to generate.