Detection logic of PL-2303 driver is not 100% correct.

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

 



Hi,

The following device claims to be a PL-2303 device, but is detected like HX 
instead of type 0. Can you please advice how the detection logic should be 
updated or if this device is a clone?

drivers/usb/serial/pl2303.c

Can someone shed some light into where the following device detection logic is 
derived from?

        if (serial->dev->descriptor.bDeviceClass == 0x02)
                type = type_0;
        else if (serial->dev->descriptor.bMaxPacketSize0 == 0x40)
                type = HX;
        else if (serial->dev->descriptor.bDeviceClass == 0x00)
                type = type_1;
        else if (serial->dev->descriptor.bDeviceClass == 0xFF)
                type = type_1;
        dbg("device type: %d", type);

I have a PL2303 device which is detected like HX type instead of type_0:

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0110
  bDeviceClass = 0x0000
  bDeviceSubClass = 0x0000
  bDeviceProtocol = 0x0000
  bMaxPacketSize0 = 0x0040
  idVendor = 0x067b
  idProduct = 0x2303
  bcdDevice = 0x0300
  iManufacturer = 0x0001  <retrieving string failed>
  iProduct = 0x0002  <USB 2.0 To COM Device>
  iSerialNumber = 0x0000  <no string>
  bNumConfigurations = 0x0001

--HPS
--
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