On Sun, 7 Dec 2003, Mathias Gug wrote: > > > > >From: Alan Stern <[EMAIL PROTECTED]> > >Okay, that clears it up! > > > >The only difference is the removal of the parentheses around the ep > >parameter in the macro texts. Perusal of the kernel code shows that this > >will make a difference in one place. The following line is from > >proc_resetep() in drivers/usb/devio.c: > > > > usb_settoggle(ps->dev, ep & 0xf, !(ep & USB_DIR_IN), 0); > > > >That must be what is causing all your problems; without the parens you get > >macro expansions that look like "(1 << ep & 0xf)". Since the left-shift > >operator binds more tightly than the logical-and operator, the meaning is > >wrong. > > > >This problem was fixed 10 months ago, see > > > >http://linux.bkbits.net:8080/linux-2.4/[EMAIL > >PROTECTED]|src/|src/include|src/include/linux|related/include/linux/usb.h > > > >So if you would try using the most current 2.4.23 kernel, your problem > >should go away. > > > Unfortunatly not. I still see the timeout problem with 2.4.23.
Is it cropping up at the same place? Are the extra parens present in the definition of the *_toggle macros/functions? If they are, then something else that changed between 2.4.21-4 and 2.4.23 must be responsible. 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