Re: [linux-usb-devel] stopping interrupt transfers..

2002-02-19 Thread rols
This is starting to make more sense now. I've been playing with the LEGO driver and that's why I started asking these types of questions several days ago. When the original urb is submitted, are you supposed to put 64 bytes in the urb, and then 36 bytes in the next urb (you as in the driver wr

Re: [linux-usb-devel] usbdevfs questions (and others... )

2002-02-14 Thread rols
Right - that sounds like a good plan for a real driver. Using the usbdevfs code however, if you call proc_reapurb() the completed request is freed before the call returns to you, so there is still a chance the urb will interrupt again before you get to cancel it. since usbdevfs always frees th

Re: [linux-usb-devel] usbdevfs questions (and others... )

2002-02-14 Thread rols
I'm pleased I asked now. I had no idea that you could even submit a bulk URB to an interrupt endpoint. I would have submitted an INT one and then probably fallen foul of the very code you mention. Perhaps that needs patching, so that the devfs code ensures that the urb is cancelled before ret

Re: [linux-usb-devel] usbdevfs questions (and others... )

2002-02-14 Thread rols
I'm pleased I asked now. I had no idea that you could even submit a bulk URB to an interrupt endpoint. I would have submitted an INT one and then probably fallen foul of the very code you mention. Perhaps that needs patching, so that the devfs code ensures that the urb is cancelled before ret