On Wed, 20 Feb 2008, David Brownell wrote:

> On Wednesday 20 February 2008, David Lopo wrote:
> >
> > When a GET_DESCRIPTOR request is received it is forwarded to the gadget 
> > driver,
> > then gadget enqueues a new usb_request but for which QH, RX or TX?
> 
> It wouldn't be for an OUT (RX) transfer, since there's a bit in
> the SETUP packet saying that it's for IN (TX)...

Just for the sake of completeness...  The bit David is referring to is
the high-order bit of the bmRequestType type in the SETUP packet.  
This bit is set for IN (device-to-host) transfers and clear for OUT
(host-to-device) or no-data transfers.  For Get-Descriptor requests 
this bit should always be set.

Alan Stern

-
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to