Re: [PATCH v1 2/2] USB: set hub's default autosuspend delay as 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 25 Sep 2012, Ming Lei wrote:

> IMO, it should be reasonable to set the device's autosuspend delay
> as zero when its driver is unbound because no one can predict when
> the device will be bound to a new driver.

It could be set to a low value, but it shouldn't be set to 0.  There 
aren't too many things you can do with an unbound device; lsusb is one 
of the most common.

On the other hand, we already have a usbcore module parameter for 
specifying the default autosuspend delay.  That's what the delay is set 
to when a device is first initialized, before it is bound to anything.  
Unfortunately the parameter's value is in seconds, not milliseconds, so 
we can't set it to any positive value smaller than 1 second.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux