Commit 26ecadf8 authored by Russell King's avatar Russell King

[SERIAL] Don't initialise port->mctrl before calling ->startup

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.
parent d86ceb07
...@@ -175,8 +175,6 @@ static int uart_startup(struct uart_state *state, int init_hw) ...@@ -175,8 +175,6 @@ static int uart_startup(struct uart_state *state, int init_hw)
uart_circ_clear(&info->xmit); uart_circ_clear(&info->xmit);
} }
port->mctrl = 0;
retval = port->ops->startup(port); retval = port->ops->startup(port);
if (retval == 0) { if (retval == 0) {
if (init_hw) { if (init_hw) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment