Skip to contentSkip to conversation

USB: serial: pl2303: Add support for PL2303GS

PATCH In review Dawid Buchwald 2 participants 2 messages Mar 11, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 USB: serial: pl2303: Add support for PL2303GS

This is the issue I have with recently acquired PL2303 adapter:

[   70.502848] usb 1-2: new full-speed USB device number 5 using xhci_hcd
[   70.652523] usb 1-2: New USB device found, idVendor=067b,
idProduct=23f3, bcdDevice= 6.05
[   70.652533] usb 1-2: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[   70.652538] usb 1-2: Product: USB-Serial Controller
[   70.652540] usb 1-2: Manufacturer: Prolific Technology Inc.
[   70.652543] usb 1-2: SerialNumber: CJAKj19B616
[   70.674558] usbcore: registered new interface driver usbserial_generic
[   70.674578] usbserial: USB Serial support registered for generic
[   70.677490] usbcore: registered new interface driver pl2303
[   70.677498] usbserial: USB Serial support registered for pl2303
[   70.677510] pl2303 1-2:1.0: pl2303 converter detected
[   70.677513] pl2303 1-2:1.0: unknown device type, please report to

[email protected]

lsusb -v -d 067b:23f3

Bus 001 Device 005: ID 067b:23f3 Prolific Technology, Inc. USB-Serial Controller Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00

  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x067b Prolific Technology, Inc.
  idProduct          0x23f3 
  bcdDevice            6.05
  iManufacturer           1 Prolific Technology Inc. 
  iProduct                2 USB-Serial Controller 
  iSerial                 3 CJAKj19B616
  bNumConfigurations      1

Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0027
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
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

---
 drivers/usb/serial/pl2303.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/serial/pl2303.c +1 -0
index a70fd86f735c..1072f8eb6ab9 100644
@@ -435,6 +435,7 @@ static int pl2303_detect_type(struct usb_serial *serial)
 		case 0x105:
 		case 0x305:
 		case 0x405:
+		case 0x605:
 			/*
 			 * Assume it's an HXN-type if the device doesn't
 			 * support the old read request value.
Signature · 1 line
2.32.0
maintainer
#1 lore raw
Quoted 29 lines · Dawid Buchwald

This is the issue I have with recently acquired PL2303 adapter:

[   70.502848] usb 1-2: new full-speed USB device number 5 using xhci_hcd
[   70.652523] usb 1-2: New USB device found, idVendor=067b,
idProduct=23f3, bcdDevice= 6.05
[   70.652533] usb 1-2: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[   70.652538] usb 1-2: Product: USB-Serial Controller
[   70.652540] usb 1-2: Manufacturer: Prolific Technology Inc.
[   70.652543] usb 1-2: SerialNumber: CJAKj19B616
[   70.674558] usbcore: registered new interface driver usbserial_generic
[   70.674578] usbserial: USB Serial support registered for generic
[   70.677490] usbcore: registered new interface driver pl2303
[   70.677498] usbserial: USB Serial support registered for pl2303
[   70.677510] pl2303 1-2:1.0: pl2303 converter detected
[   70.677513] pl2303 1-2:1.0: unknown device type, please report to

[email protected]

---
 drivers/usb/serial/pl2303.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/serial/pl2303.c +0 -0
index a70fd86f735c..1072f8eb6ab9 100644

drivers/usb/serial/pl2303.c static int pl2303_detect_type(struct usb_serial *serial) · line 441

Quoted 7 lines
drivers/usb/serial/pl2303.c +1 -0
@@ -435,6 +435,7 @@ static int pl2303_detect_type(struct usb_serial *serial)
 		case 0x105:
 		case 0x305:
 		case 0x405:
+		case 0x605:
 			/*
 			 * Assume it's an HXN-type if the device doesn't
 			 * support the old read request value.

Thanks for the update. The corrupt whitespace issue appears to be fixed now.

Someone else reported this on Sunday and I totally forgot that you had reported the same issue a week earlier and was preparing a v2.

I'm really sorry about that.

This has now been fixed with commit:

	5b6ab28d0678 ("USB: serial: pl2303: fix GS type detection")

which will show up in mainline soon and be backported to stable.

Johan