USB: flow control fix for pl2303
authort.sefzick <t.sefzick@fz-juelich.de>
Wed, 25 Apr 2007 13:05:22 +0000 (15:05 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jul 2007 23:29:51 +0000 (16:29 -0700)
in order to be able to switch back to 'flow-control none'
after having activated 'flow-control rts/cts', I made
a small change to 'pl2303.c'.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/pl2303.c

index 83dfae93a45db37278ee130e3b99fb30a2328a23..5027ae9afaab3ba246685fe26523e53787323cbe 100644 (file)
@@ -617,6 +617,13 @@ static void pl2303_set_termios(struct usb_serial_port *port,
                                    VENDOR_WRITE_REQUEST_TYPE,
                                    0x0, index, NULL, 0, 100);
                dbg("0x40:0x1:0x0:0x%x  %d", index, i);
+       } else {
+               i = usb_control_msg(serial->dev,
+                                   usb_sndctrlpipe(serial->dev, 0),
+                                   VENDOR_WRITE_REQUEST,
+                                   VENDOR_WRITE_REQUEST_TYPE,
+                                   0x0, 0x0, NULL, 0, 100);
+               dbg ("0x40:0x1:0x0:0x0  %d", i);
        }
 
        kfree(buf);