On Fri, 4 Jan 2013, Lan Tianyu wrote:

> Some usb devices can't be resumed correctly after power off. This
> patch is to add usb_device_allow_power_off() for device's driver to allow or
> prohibit device to be power off the device. Call pm_runtime_get_sync(portdev)
> to increase port's usage count and then port will not be suspended. The
> device will not be power off.

There should be two separate APIs: usb_device_allow_power_off() and 
usb_device_prevent_power_off().  If you want, they can be implemented 
as inline routines that call a single handler.

Alan Stern

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

Reply via email to