The 2.4 version looks sane, but I would like someone who has a known-working pl2303 to test the patch below against possible breakage on 2.6. Unless it's in 2.6 and we know that it does not make anything worse I'm not taking it into 2.4.
Best wishes, -- Pete --- linux-2.6.10/drivers/usb/serial/pl2303.c 2005-01-05 00:37:59.000000000 -0800 +++ linux-2.6.10-lem/drivers/usb/serial/pl2303.c 2005-01-10 14:14:17.532446800 -0800 @@ -510,6 +510,12 @@ dbg ("0xa1:0x21:0:0 %d - %x %x %x %x %x %x %x", i, buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6]); + if (cflag & CLOCAL) { + 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); + } if (cflag & CRTSCTS) { __u16 index; if (priv->type == HX) > From: Gernot Fink <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: linux-usb-devel@lists.sourceforge.net > References: <[EMAIL PROTECTED]> > In-Reply-To: <[EMAIL PROTECTED]> > > If a programm set CRTSCTS to enable hardware-handschaking in the PL2303-device > this stays until the device is unplugged. > This is because CLOCAL is not supported in the driver. > > Following works for me: > ------ > *** pl2303.c.org Thu Jan 6 12:29:34 2005 > --- pl2303.c Thu Jan 6 12:31:24 2005 > *************** > *** 379,384 **** > --- 379,390 ---- > dbg ("0xa1:0x21:0:0 %d - %x %x %x %x %x %x %x", i, > buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6]); > > + if (cflag & CLOCAL) { > + 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); > + } > if (cflag & CRTSCTS) { > i = usb_control_msg (serial->dev, usb_sndctrlpipe (serial->dev, > 0), > VENDOR_WRITE_REQUEST, > VENDOR_WRITE_REQUEST_TYPE, > > -- > MFG Gernot ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel