Am Montag 24 September 2007 schrieb Alan Stern:
> On Mon, 24 Sep 2007, Oliver Neukum wrote:

> > But we don't bother when suspending the whole system. So why not simply
> > walk the subtrees under a USB device? Let the subsystem choose what
> > depth of sleep to use.
> 
> Because by doing so you are effectively telling the drivers in the
> subtree that the entire system is going to be suspended, which isn't

Unfortunately, that is correct.

> correct.  It may also turn out that the user wants to keep the
> subsystem active, even though the USB driver isn't aware of it.  Last
> but not least, the subsystem will need to have some form of autoresume.  

Not necessarily.
 
> The way it should work is for the lower subsystem to tell the USB
> driver when suspending is okay, not the other way around.  When the

Absolutely.

> subsystem implements its own form of runtime PM support, then you'll be
> able to use it properly.  But until then, there isn't anything much you
> can do.

Well, we can't simply cut power. Buffers must be flushed and the disk
spun down. The suspend() method of the storage driver will have to become
complex.
 
        Regards
                Oliver
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to