Re: device descriptor not sent correctly

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

 



On Fri, Nov 20, 2009 at 07:13:01PM +0100, Ivan Braginski wrote:
> Hello!
> 
> I'm trying to use an evaluation board as USB gadget, but when I
> connect it to a host, the host says "unknown device" and VID and PID
> are both 0000. So the device descriptor is empty or not sent properly.

Not necessarily, I've seen vid and pid set to 0000 in some devices.

> The board has a module with pxa320 chip. I used pxa27x-udc as USB
> device controller driver, and I tried different gadget drivers, like
> g-serial and g-zero, with the same result.
> 
> Can you give me a hint, what is maybe going wrong, please?
> 
> I also wonder, how the device descriptor gets sent by the kernel. I
> have read, that the USB device must listen to the host. Then the host
> asks the device for all the descriptors and the device responds.

Exactly.

> Can you point me out, which function does listen to the host, or which
> function actually sends the device descriptor? It does not have to be
> in pxa27x-udc, I would also appreciate, if you can show this in any
> other driver, because I only want to see, what such code looks like.

The USB core handles all of this for you on the host side.  On the
gadget side, it is in the "type" of device that you have specified to be
built for your device.  What type did you set?

thanks,

greg k-h
--
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