Re: [PATCH v3 2/2] [media] uvcvideo: Remain runtime-suspended at sleeps

2015-04-20 Thread Tomeu Vizoso
On 17 April 2015 at 19:32, Alan Stern st...@rowland.harvard.edu wrote: On Fri, 17 Apr 2015, Tomeu Vizoso wrote: When the system goes to sleep and afterwards resumes, a significant amount of time is spent suspending and resuming devices that were already runtime-suspended. By setting

[PATCH v3 2/2] [media] uvcvideo: Remain runtime-suspended at sleeps

2015-04-17 Thread Tomeu Vizoso
in runtime-suspend. Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com --- drivers/media/usb/uvc/uvc_driver.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index 5970dd6..ae75a70 100644 --- a/drivers/media/usb/uvc

[PATCH v3 0/2] Allow UVC devices to remain runtime-suspended when sleeping

2015-04-17 Thread Tomeu Vizoso
considerably the total time that resuming takes. It makes use of the facility that Rafael Wysocki added in aae4518b3 (PM / sleep: Mechanism to avoid resuming runtime-suspended devices unnecessarily). Thanks, Tomeu Tomeu Vizoso (2): PM / sleep: Let devices force direct_complete [media] uvcvideo

Re: [PATCH v2 4/7] [media] uvcvideo: Enable runtime PM of descendant devices

2015-04-09 Thread Tomeu Vizoso
On 4 April 2015 at 14:33, Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: Hi Tomeu, Thank you for the patch. Could you please CC me on the whole series for v3 ? Sure. On Friday 03 April 2015 14:57:53 Tomeu Vizoso wrote: So UVC devices can remain runtime-suspended when the system

[PATCH v2 3/7] [media] uvcvideo: Set input_dev.stay_runtime_suspended flag

2015-04-03 Thread Tomeu Vizoso
So that the UVC device can remain runtime suspended when the system goes into a sleep state, let the input device do the same. Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com --- drivers/media/usb/uvc/uvc_status.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/usb/uvc

[PATCH v2 5/7] [media] v4l2-core: Implement dev_pm_ops.prepare()

2015-04-03 Thread Tomeu Vizoso
Have it return 1 so that video devices that are runtime-suspended won't be suspended when the system goes to a sleep state. This can make resume times considerably shorter because these devices don't need to be resumed when the system is awaken. Signed-off-by: Tomeu Vizoso tomeu.viz

[PATCH v2 6/7] [media] media-devnode: Implement dev_pm_ops.prepare callback

2015-04-03 Thread Tomeu Vizoso
Have it return 1 so that media device nodes that are runtime-suspended won't be suspended when the system goes to a sleep state. This can make resume times considerably shorter because these devices don't need to be resumed when the system is awaken. Signed-off-by: Tomeu Vizoso tomeu.viz

[PATCH v2 4/7] [media] uvcvideo: Enable runtime PM of descendant devices

2015-04-03 Thread Tomeu Vizoso
So UVC devices can remain runtime-suspended when the system goes into a sleep state, they and all of their descendant devices need to have runtime PM enable. Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com --- drivers/media/usb/uvc/uvc_driver.c | 11 +++ 1 file changed, 11

[PATCH v2 0/7] Allow UVC devices to remain runtime-suspended when sleeping

2015-04-03 Thread Tomeu Vizoso
), which requires that a device and all its descendants opt-in by having their dev_pm_ops.prepare callback return 1, to have runtime PM enabled, and to be runtime suspended when the system goes to a sleep state. Thanks, Tomeu Tomeu Vizoso (7): Input: Implement dev_pm_ops.prepare in input_class

[PATCH 2/6] [media] v4l2-core: Implement dev_pm_ops.prepare()

2015-03-31 Thread Tomeu Vizoso
Have it return 1 so that video devices that are runtime-suspended won't be suspended when the system goes to a sleep state. This can make resume times considerably shorter because these devices don't need to be resumed when the system is awaken. Signed-off-by: Tomeu Vizoso tomeu.viz

[PATCH 4/6] [media] media-devnode: Implement dev_pm_ops.prepare callback

2015-03-31 Thread Tomeu Vizoso
Have it return 1 so that media device nodes that are runtime-suspended won't be suspended when the system goes to a sleep state. This can make resume times considerably shorter because these devices don't need to be resumed when the system is awaken. Signed-off-by: Tomeu Vizoso tomeu.viz

[PATCH 0/6] Allow UVC devices to remain runtime-suspended when sleeping

2015-03-31 Thread Tomeu Vizoso
-suspended devices unnecessarily), which requires that a devices and all its descendants opt-in by having their dev_pm_ops.prepare callback return 1, to have runtime PM enabled, and to be runtime suspended when the system goes to a sleep state. Thanks, Tomeu Tomeu Vizoso (6): [media] uvcvideo

[PATCH 1/6] [media] uvcvideo: Enable runtime PM of descendant devices

2015-03-31 Thread Tomeu Vizoso
So UVC devices can remain runtime-suspended when the system goes into a sleep state, they and all of their descendant devices need to have runtime PM enable. Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com --- drivers/media/usb/uvc/uvc_driver.c | 4 drivers/media/usb/uvc/uvc_status.c