On Fri, 9 Feb 2007, Oliver Neukum wrote: > Hi, > > here's autosuspend for storage devices. It was surprisingly easy. > I've tested it and I can play an mp3 and see how the stick wakes > up every few seconds. Comments? > To test this you'll likely have to turn off haldaemon. This still > needs a solution.
The patch isn't really right. For one thing, you removed some mutexes that are necessary (don't forget that suspend can come from sources other than autosuspend). Also, it's debatable whether USB should autosuspend a storage device at all. Like with HID devices, it seems more logical to have autosuspend requests come up from the lower layer (in this case the SCSI layer). After all, suspending a disk could cause it to spin down, which is something the SCSI disk driver might want to be aware of. You could raise this question on the linux-scsi mailing list. > Alan, do I recall correctly that you have a mouse with an internal > card reader? That would be the optimal test device. If storage and > hid cooperate on that hardware I'd be happy. I do not have such a device; you must be thinking of someone else. In fact, the only multi-interface device I have is a Bluetooth receiver, which I haven't ever tried to use. Alan Stern ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel