[PATCH] cp210x: set drt/rts lines when port opens

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 This reverts 9a68e39d4a701fb3be03cae9b462408664ebd205
 Commit 9a68e39d4a701fb3be03cae9b462408664ebd205 breaks my hardware.
 After 9a68e39d4a opening the port in minicom or cutecom would produce no data flow.
 Kernels 2.6.15(or maybee earlier) through 2.6.30 worked fine up until 9a68e39d4a.

Signed-off-by: Karl Hiramoto <karl@xxxxxxxxxxxx>
Cc: stable <stable@xxxxxxxxxx>

---
 drivers/usb/serial/cp210x.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c
index 698252a..26a46e2 100644
--- a/drivers/usb/serial/cp210x.c
+++ b/drivers/usb/serial/cp210x.c
@@ -398,6 +398,11 @@ 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;
 }
 
-- 
1.6.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux