Hi Josep, so if I understand right this

#define usb_settoggle(dev, ep, out, bit) ((dev)->toggle[out] =
((dev)->toggle[out] & ~(1 << (ep))) | ((bit) << (ep)))

doesn't work, while this

#define usb_settoggle(dev, ep, out, bit) ((dev)->toggle[out] =
((dev)->toggle[out] & ~(1 << ep)) | ((bit) << ep))

does.  It makes a difference in devio.c @ proc_resetep, due to:

        usb_settoggle(ps->dev, ep & 0xf, !(ep & USB_DIR_IN), 0);

Well, the difference is clear, but what surprises me is that the
original works and the new one doesn't (I would have expected
it to be the other way round).

Thanks for looking into this,

Duncan.


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

Reply via email to