Re: [PATCH] USB: fix comment about order of bmRequestType

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

 



On Mon, 2011-06-06 at 11:16 -0400, Alan Stern wrote:
> On Mon, 6 Jun 2011, Christoph Fritz wrote:
> 
> > According to chapter 9.3 of USB specification 2.0, bmRequestTypes order
> > of fields is:
> >  - bit 0 to 4 recipient
> >  - bit 5 to 6 type
> >  - bit 7 data transfer direction
> 
> That's not the _order_ of the fields -- it's the _location_ of the
> fields.

Thanks, I didn't get this because I always read bitfields form right to
left and after I realized that usb_control_msg() swaps requesttype and
request I thought this could get "right".

Thanks,
 -- Christoph

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