]> git.neil.brown.name Git - history.git/commitdiff
[SERIAL] Don't initialise port->mctrl before calling ->startup
authorRussell King <rmk@flint.arm.linux.org.uk>
Fri, 5 Mar 2004 21:12:13 +0000 (21:12 +0000)
committerRussell King <rmk@flint.arm.linux.org.uk>
Fri, 5 Mar 2004 21:12:13 +0000 (21:12 +0000)
If a serial port is hung up using vhangup() with HUPCL cleared (so
DTR isn't dropped), and then re-opened, we don't want to drop the
DTR line.  This occurs during the login process, and dropping DTR
would cause a modem to hang up.

drivers/serial/serial_core.c

index eadc195a9bd2f79e4a7e587e79e0ebf11333d270..d4a1c40ac9c6019f225a3213d5e8c388bd772e5c 100644 (file)
@@ -175,8 +175,6 @@ static int uart_startup(struct uart_state *state, int init_hw)
                uart_circ_clear(&info->xmit);
        }
 
-       port->mctrl = 0;
-
        retval = port->ops->startup(port);
        if (retval == 0) {
                if (init_hw) {