Am 24.10.2013 14:21, schrieb Mika Westerberg: > Hi, > > Just noticed that after commit 61fa8d694b854 (usb: pl2303: also use the > divisor based baud rate encoding method for baud rates < 115200 with HX > chips) my TRENDnet TU-S9 USB-to-serial adapter started corrupting data. > > I added baud <= 115200 check back to the comparison which makes the device > work for me again (I'm using it at 115200 bps): > > if (type == type_0 || type == type_1 || type == HX_CLONE || baud <= 115200) > baud = pl2303_baudrate_encode_direct(baud, type, buf); There's a better way to fix this... > > The PL2303 chip has following markings if it helps: > > PL-2303HX > LF10482D > TP37331HD > > and here is the output of 'lsusb -vv' of that device: > > Bus 002 Device 116: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port > Device Descriptor: > bLength 18 > bDescriptorType 1 > bcdUSB 1.10 > bDeviceClass 0 (Defined at Interface level) > bDeviceSubClass 0 > bDeviceProtocol 0 > bMaxPacketSize0 64 > idVendor 0x067b Prolific Technology, Inc. > idProduct 0x2303 PL2303 Serial Port > bcdDevice 4.00 > iManufacturer 1 Prolific Technology Inc. > iProduct 2 USB-Serial Controller D Ok, this seems to be a HXD (HX rev. D) chip. Could you please validate by checking what Prolifics CheckChipVersion tool toll sais ? It would also be very nice if you could provide a USB-log of what this tool does, because we are currently not able to distinguish between HXD and EA, RA, SA chips. Are baudrates > 115200 working ? Regards, Frank Schäfer > iSerial 0 > bNumConfigurations 1 > Configuration Descriptor: > bLength 9 > bDescriptorType 2 > wTotalLength 39 > bNumInterfaces 1 > bConfigurationValue 1 > iConfiguration 0 > bmAttributes 0x80 > (Bus Powered) > MaxPower 100mA > Interface Descriptor: > bLength 9 > bDescriptorType 4 > bInterfaceNumber 0 > bAlternateSetting 0 > bNumEndpoints 3 > bInterfaceClass 255 Vendor Specific Class > bInterfaceSubClass 0 > bInterfaceProtocol 0 > iInterface 0 > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x81 EP 1 IN > bmAttributes 3 > Transfer Type Interrupt > Synch Type None > Usage Type Data > wMaxPacketSize 0x000a 1x 10 bytes > bInterval 1 > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x02 EP 2 OUT > bmAttributes 2 > Transfer Type Bulk > Synch Type None > Usage Type Data > wMaxPacketSize 0x0040 1x 64 bytes > bInterval 0 > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x83 EP 3 IN > bmAttributes 2 > Transfer Type Bulk > Synch Type None > Usage Type Data > wMaxPacketSize 0x0040 1x 64 bytes > bInterval 0 > Device Status: 0x0000 > (Bus Powered) -- 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