V4L/DVB (8754): uvcvideo: Implement the USB power management reset_resume method.
authorLaurent Pinchart <laurent.pinchart@skynet.be>
Fri, 22 Aug 2008 20:25:10 +0000 (17:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Oct 2008 11:36:53 +0000 (09:36 -0200)
commit9b0ae867a6fd3035e97e6c33bc07a5bfd7c0f96c
treef9acf89578b607a93fe0dda274848d0c0df3e422
parent14d962602c8bf86e63c9b9272be1f0360d0a448a
V4L/DVB (8754): uvcvideo: Implement the USB power management reset_resume method.

When a suspended device has been reset instead of being resumed, USB core
calls the reset_resume method if available instead of unbinding and rebinding
the device.

This patch implements reset_resume by reusing the current resume
implementation and simplifies the resume method by skipping the controls
restore stage. Resuming from autosuspend should be faster.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_driver.c