Ver Fonte

ftdi_sio: don't override modem bits

The new open/close logic handles DTR and friends, so don't do it in our own
open routine as well.

Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Alan Cox há 16 anos atrás
pai
commit
7e9cd3a617
1 ficheiros alterados com 0 adições e 5 exclusões
  1. 0 5
      drivers/usb/serial/ftdi_sio.c

+ 0 - 5
drivers/usb/serial/ftdi_sio.c

@@ -1556,11 +1556,6 @@ static int ftdi_open(struct tty_struct *tty,
 	if (tty)
 	if (tty)
 		ftdi_set_termios(tty, port, tty->termios);
 		ftdi_set_termios(tty, port, tty->termios);
 
 
-	/* FIXME: Flow control might be enabled, so it should be checked -
-	   we have no control of defaults! */
-	/* Turn on RTS and DTR since we are not flow controlling by default */
-	set_mctrl(port, TIOCM_DTR | TIOCM_RTS);
-
 	/* Not throttled */
 	/* Not throttled */
 	spin_lock_irqsave(&priv->rx_lock, flags);
 	spin_lock_irqsave(&priv->rx_lock, flags);
 	priv->rx_flags &= ~(THROTTLED | ACTUALLY_THROTTLED);
 	priv->rx_flags &= ~(THROTTLED | ACTUALLY_THROTTLED);