From 7df9f2fba5458e2a478f82b44f7256e6bad98841 Mon Sep 17 00:00:00 2001 From: William Wu Date: Tue, 6 Mar 2018 17:02:05 +0800 Subject: [PATCH] usb: quirks: add device quirk for Sonix FaceBlack device We found that some Sonix usb cameras(e.g. idVendor=0c45, idProduct=64ab or idProduct=64ac) can't support auto-suspend well on rockchip platforms(e.g. rk3399).With auto-suspend, these usb cameras MJPEG will display abnormally on all usb controllers(DWC2/DWC3/EHCI). So we need to disable auto- suspend for these special usb cameras. Change-Id: I08c87cf5c9fa5ebe076b5dd3e873b74c5ec2cb83 Signed-off-by: William Wu --- drivers/usb/core/quirks.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c index de0e8a743e0d..678e3e12ab8b 100644 --- a/drivers/usb/core/quirks.c +++ b/drivers/usb/core/quirks.c @@ -210,6 +210,10 @@ static const struct usb_device_id usb_quirk_list[] = { { USB_DEVICE(0x0b05, 0x17e0), .driver_info = USB_QUIRK_IGNORE_REMOTE_WAKEUP }, + /* Sonix FaceBlack device */ + { USB_DEVICE(0x0c45, 0x64ab), .driver_info = USB_QUIRK_AUTO_SUSPEND }, + { USB_DEVICE(0x0c45, 0x64ac), .driver_info = USB_QUIRK_AUTO_SUSPEND }, + /* Action Semiconductor flash disk */ { USB_DEVICE(0x10d6, 0x2200), .driver_info = USB_QUIRK_STRING_FETCH_255 },