Re: [linux-usb-devel] A pointless patch to consider

2001-11-02 Thread Dmitri
Quoting Randy.Dunlap <[EMAIL PROTECTED]>: > Dmitri wrote: > > > > Quoting Pete Zaitcev <[EMAIL PROTECTED]>: > > > > > Guys, > > > > > > I noticed a funny thing... When drivers ask for a pipe to be > > > made up, they often pass an endpoint address with 0x80 bit set. > > > This makes for a pipe

Re: [linux-usb-devel] A pointless patch to consider

2001-11-02 Thread Pete Zaitcev
> > - return (dev->devnum << 8) | (endpoint << 15) | > > + return (dev->devnum << 8) | ((endpoint & 0xf) << 15) | > > ((dev->speed == USB_SPEED_LOW) << 26); > > Total 16 endpoints? Did you mean 0x7f? In usb.h: /* * Calling this entity a "pipe" is glorifying it. A USB pipe * is

Re: [linux-usb-devel] A pointless patch to consider

2001-11-02 Thread Randy.Dunlap
Dmitri wrote: > > Quoting Pete Zaitcev <[EMAIL PROTECTED]>: > > > Guys, > > > > I noticed a funny thing... When drivers ask for a pipe to be > > made up, they often pass an endpoint address with 0x80 bit set. > > This makes for a pipe with 0x0040 bit set, which is in the > > reserved area. I

Re: [linux-usb-devel] A pointless patch to consider

2001-11-02 Thread Dmitri
Quoting Pete Zaitcev <[EMAIL PROTECTED]>: > Guys, > > I noticed a funny thing... When drivers ask for a pipe to be > made up, they often pass an endpoint address with 0x80 bit set. > This makes for a pipe with 0x0040 bit set, which is in the > reserved area. It appears not to harm anything,

[linux-usb-devel] A pointless patch to consider

2001-11-02 Thread Pete Zaitcev
Guys, I noticed a funny thing... When drivers ask for a pipe to be made up, they often pass an endpoint address with 0x80 bit set. This makes for a pipe with 0x0040 bit set, which is in the reserved area. It appears not to harm anything, but is annoying in printouts. How about this: --- linu