Blame linux-2.6-uvc-autosuspend.patch
|
Matthew Garrett |
2b89a04 |
commit 4a3757e0ae269f710292dd75013532c5a57ccb00
|
|
Matthew Garrett |
2b89a04 |
Author: Matthew Garrett <mjg@redhat.com>
|
|
Matthew Garrett |
2b89a04 |
Date: Thu Sep 16 13:38:38 2010 -0400
|
|
Matthew Garrett |
2b89a04 |
|
|
Matthew Garrett |
2b89a04 |
uvc: Enable USB autosuspend by default on uvcvideo
|
|
Matthew Garrett |
2b89a04 |
|
|
Matthew Garrett |
2b89a04 |
We've been doing this for a while in Fedora without any complaints.
|
|
Matthew Garrett |
2b89a04 |
|
|
Matthew Garrett |
2b89a04 |
Signed-off-by: Matthew Garrett <mjg@redhat.com>
|
|
Matthew Garrett |
2b89a04 |
|
|
Matthew Garrett |
2b89a04 |
diff --git a/drivers/media/video/uvc/uvc_driver.c b/drivers/media/video/uvc/uvc_driver.c
|
|
Matthew Garrett |
2b89a04 |
index 8bdd940..28ed5b4 100644
|
|
Matthew Garrett |
2b89a04 |
--- a/drivers/media/video/uvc/uvc_driver.c
|
|
Matthew Garrett |
2b89a04 |
+++ b/drivers/media/video/uvc/uvc_driver.c
|
|
Matthew Garrett |
2b89a04 |
@@ -1814,6 +1814,7 @@ static int uvc_probe(struct usb_interface *intf,
|
|
Matthew Garrett |
2b89a04 |
}
|
|
Matthew Garrett |
2b89a04 |
|
|
Matthew Garrett |
2b89a04 |
uvc_trace(UVC_TRACE_PROBE, "UVC device initialized.\n");
|
|
Matthew Garrett |
2b89a04 |
+ usb_enable_autosuspend(udev);
|
|
Matthew Garrett |
2b89a04 |
return 0;
|
|
Matthew Garrett |
2b89a04 |
|
|
Matthew Garrett |
2b89a04 |
error:
|