From: Alan Cox Date: Sat, 19 Sep 2009 20:13:24 +0000 (-0700) Subject: tty: remove dtr/rts use from the driver open methods X-Git-Tag: v2.6.31.2~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55b664beda5a2990afb7e4ec809792e34753fe4e;p=thirdparty%2Fkernel%2Fstable.git tty: remove dtr/rts use from the driver open methods commit 9a68e39d4a701fb3be03cae9b462408664ebd205 upstream. These are handled by the tty_port core code which will raise and lower the carrier correctly in tty_wait_until_ready Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index 985cbcf48bda8..b5275c4a8eedf 100644 --- a/drivers/usb/serial/cp210x.c +++ b/drivers/usb/serial/cp210x.c @@ -399,12 +399,6 @@ static int cp210x_open(struct tty_struct *tty, struct usb_serial_port *port, /* Configure the termios structure */ cp210x_get_termios(tty, port); - - /* Set the DTR and RTS pins low */ - cp210x_tiocmset_port(tty ? (struct usb_serial_port *) tty->driver_data - : port, - NULL, TIOCM_DTR | TIOCM_RTS, 0); - return 0; }