On Thu, 11 Dec 2003, Duncan Sands wrote: > Hi Josep, does the following also work? > > --- usb.h.orig 2003-12-11 14:29:08.000000000 +0100 > +++ usb.h 2003-12-11 14:29:16.000000000 +0100 > @@ -1005,7 +1005,7 @@ > static inline void usb_settoggle(struct usb_device *dev, > unsigned int ep, > unsigned int out, > - int bit) > + unsigned int bit) > { > dev->toggle[out] &= ~(1 << ep); > dev->toggle[out] |= bit << ep;
This seems stupid, but maybe it will help -- I don't know, it depends on how usb_settoggle is called. How about instead changing > dev->toggle[out] |= bit << ep; to > if (bit) > dev->toggle[out] |= 1 << ep; Less efficient, but if it avoids a bug it's worth it. Alan Stern ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel