mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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>
This commit is contained in:
@@ -2074,7 +2074,8 @@ static int uvc_probe(struct usb_interface *intf,
|
||||
}
|
||||
|
||||
uvc_trace(UVC_TRACE_PROBE, "UVC device initialized.\n");
|
||||
if (udev->quirks & USB_QUIRK_AUTO_SUSPEND)
|
||||
if (udev->quirks & USB_QUIRK_AUTO_SUSPEND ||
|
||||
udev->parent->quirks & USB_QUIRK_AUTO_SUSPEND)
|
||||
uvc_printk(KERN_INFO, "auto-suspend is blacklisted for this device\n");
|
||||
else
|
||||
usb_enable_autosuspend(udev);
|
||||
|
||||
Reference in New Issue
Block a user