On Fri, 6 Jul 2007, Mike Nuss wrote: > > If all else fails and you can't get timely interrupts, you can always > > fall back on a kernel timer. Scan through the data structures once a > > second or thereabouts. As an optimization, allow the timer to run only > > while there are active URBs. > > Yes, I'm thinking this might be the only way that will always work. How > prevalent is that kind of workaround in the kernel?
It happens here and there. If you need it, don't feel shy about putting it in. Just make sure there's minimal overhead for systems that don't need it. In this case there's already a kernel timer you can use: the root hub status timer. There's some complicated code in ohci-hub.c to turn that timer on and off (it could be simplified a good deal -- and unfortunately I'm the person who made it more complex than it needs to be...). Alan Stern ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel