Re: PL2303 / PL2303X not working

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

 



On Wednesday 28 April 2010 07:53:30 Greg KH wrote:
> On Sat, Apr 24, 2010 at 10:39:58AM +0200, Andrea Cometa wrote:
> > Greg KH ha scritto:
> >> [...]
> >> 
> >>> The same thing happens with different brands of Prolific devices!
> >> 
> >> This is sounding like a hardware problem on the device you have plugged
> >> into the usb-serial device.  Are you sure that works?
> >> 
> >>> I have now ordered a FTDI device to see if anything changes! (hope)
> >> 
> >> I hope so too :)
> >> 
> >> thanks,
> >> 
> >> greg k-h
> > 
> > now this is the actual situation:
> > 
> > i've 4 different kind of usb-serial devices, 3 PL2303X (different brands)
> > and 1 FTDI
> > (ubuntu 8.04) with kernel 2.6.24 works with all 4 devices
> > (ubuntu 9.10) with kernel 2.6.31, 2.6.32, 2.6.34 works only with ftdi
> > 
> > I think there is a bug on recognizing the PL2303X device,
> > to solve the problem, I would be happy to give you more details if
> > necessary
> 
> Yes, I don't know what is currently going on with this device, sorry.

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