Skip to content

Commit 801ff69

Browse files
committed
uvcvideo: add quirk for dev parent with broken auto suspend
If the parent of uvc device has a quirk for broken auto-suspend function (e.g. rk3328 usb 3.0 root hub), we also need to disable auto-suspend for the uvc device. Change-Id: Ida8d05a411f49f39e13cad3ec837a56598b4a630 Signed-off-by: William Wu <william.wu@rock-chips.com>
1 parent a46f2b4 commit 801ff69

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/media/usb/uvc/uvc_driver.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2074,7 +2074,8 @@ static int uvc_probe(struct usb_interface *intf,
20742074
}
20752075

20762076
uvc_trace(UVC_TRACE_PROBE, "UVC device initialized.\n");
2077-
if (udev->quirks & USB_QUIRK_AUTO_SUSPEND)
2077+
if (udev->quirks & USB_QUIRK_AUTO_SUSPEND ||
2078+
udev->parent->quirks & USB_QUIRK_AUTO_SUSPEND)
20782079
uvc_printk(KERN_INFO, "auto-suspend is blacklisted for this device\n");
20792080
else
20802081
usb_enable_autosuspend(udev);

0 commit comments

Comments
 (0)