On Tue, Jul 02, 2002, David Brownell <[EMAIL PROTECTED]> wrote:
> Duncan Sands wrote:
> > On my windows box a certain URB is sent down with
> > transfer flags = 3 = 2 + 1.  The 1 means
> > USBD_SHORT_TRANSFER_OK.  In the linux usb.h
> > I see that 1 means USB_DISABLE_SPD which sounds
> > like setting it means short transfers are NOT ok.  Are these
> > flags the opposite of each other or do they mean the
> > same thing?  i.e. should I flip bit 0 of transfer_flags when
> > going between windows and linux?
> 
> Talk about really badly named flags ... that's
> "DISABLE SHORT PACKET DISABLE" (SPD is a UHCI flag),
> a double negative:  short packets are enabled.

SPD = Short Packet Detect. Take a look at section 3.2.2 in the UHCI
specs.

So it would be "Disable Short Packet Detect".

However, it works like one would imagine when hearing "Short Packet
Disable".

So Duncan's initial impression that the bits would be opposite between
Windows and Linux is correct.

However, I would NOT hard code it to a specific bit position.

> That flag would really be worth renaming ... :)

For 2.5 maybe.

JE



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to