Am Freitag, 9. Februar 2007 19:06 schrieb Alan Stern:
> 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).

Yes, I am currently finding out what is to guard against.
This was not the final version, just a friday publish before
dinner thing. I'll be more explicit next time.

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

I will. But which devices don't have an upper layer. And strictly
speaking I am not suspending devices. I am managing vetos.
 
        Regards
                Oliver

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

Reply via email to