]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/serial/serial_core.c
serial: assert DTR for serial console devices
[linux-2.6-omap-h63xx.git] / drivers / serial / serial_core.c
index 326020f86f757e98ef6f148754cdb1e355ee75b3..9c57486c2e7fe20783b004dad25475b4cc805358 100644 (file)
@@ -1910,6 +1910,12 @@ uart_set_options(struct uart_port *port, struct console *co,
        if (flow == 'r')
                termios.c_cflag |= CRTSCTS;
 
+       /*
+        * some uarts on other side don't support no flow control.
+        * So we set * DTR in host uart to make them happy
+        */
+       port->mctrl |= TIOCM_DTR;
+
        port->ops->set_termios(port, &termios, NULL);
        co->cflag = termios.c_cflag;