Re: [linux-usb-devel] [PATCH 2/2] usb-storage: implement autosuspend

2007-07-09 Thread Alan Stern
On Mon, 9 Jul 2007, Oliver Neukum wrote: > Am Freitag, 6. Juli 2007 schrieb Alan Stern: > > @@ -1028,6 +1039,7 @@ static int storage_probe(struct usb_inte > > * start it up. */ > > scsi_host_get(us_to_host(us)); > > atomic_inc(&total_threads); > > +   usb_autopm_get_in

Re: [linux-usb-devel] [PATCH 2/2] usb-storage: implement autosuspend

2007-07-09 Thread Oliver Neukum
Am Freitag, 6. Juli 2007 schrieb Alan Stern: > @@ -1028,6 +1039,7 @@ static int storage_probe(struct usb_inte > * start it up. */ > scsi_host_get(us_to_host(us)); > atomic_inc(&total_threads); > +   usb_autopm_get_interface(intf); /* dropped in the scanning thread */ >

[linux-usb-devel] [PATCH 2/2] usb-storage: implement autosuspend

2007-07-06 Thread Alan Stern
This patch (as930) implements autosuspend for usb-storage. It is adapted from a patch by Oliver Neukum. Autosuspend is allowed except during LUN scanning, resets, and command execution. Signed-off-by: Alan Stern <[EMAIL PROTECTED]> --- The default autosuspend delay of 2 seconds is probably too