Hi, Alan Stern has written a change to the generic autosuspend mechanism that allows timeout based suspension. As he suggested I've tested it by using it for suspension of HID devices. It took some small changes to Alan's code to introduce a bit more flexibility. It's tested with mice but needs review.
To allow testing I am posting the full amalgated patch against 2.6.20. I'll also put apart the patches. > Hi, you need this additional patch to fix an oops with driverless devices. Regards Oliver ---- --- a/drivers/usb/core/driver.c 2007-02-16 16:23:52.000000000 +0100 +++ b/drivers/usb/core/driver.c 2007-02-16 16:22:58.000000000 +0100 @@ -948,6 +948,8 @@ if (!drv) return 0; + if (IS_ERR(drv)) + return 0; if (!drv->check_busy) return 0; ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel