From 36111e7b070ee66de5627104f60248494984c03d Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Thu, 25 Feb 2021 17:17:12 +0900 Subject: [PATCH] media: uvcvideo: Add a probe quirk to Jieli Technology USB PHY 2.0 (1224:2a25) Repeated video request on Jieli Technology USB PHY 2.0 (1224:2a25) device causes data stall with below error until reconnection: uvcvideo: Failed to set UVC probe control : -32 (exp. 26). To resolve the wrong state, add PROBE quirk bits. Change-Id: I5efba6ac26d5eea70e2227f9ff9801dd5d8d4790 Signed-off-by: Seung-Woo Kim --- drivers/media/usb/uvc/uvc_driver.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index 72fff72..87199e4a 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -3164,6 +3164,16 @@ static const struct usb_device_id uvc_ids[] = { .bInterfaceSubClass = 1, .bInterfaceProtocol = 0, .driver_info = UVC_INFO_META(V4L2_META_FMT_D4XX) }, + /* Jieli Technology USB PHY 2.0 / QSENN webcam */ + { .match_flags = USB_DEVICE_ID_MATCH_DEVICE + | USB_DEVICE_ID_MATCH_INT_INFO, + .idVendor = 0x1224, + .idProduct = 0x2a25, + .bInterfaceClass = USB_CLASS_VIDEO, + .bInterfaceSubClass = 1, + .bInterfaceProtocol = 0, + .driver_info = UVC_INFO_QUIRK(UVC_QUIRK_PROBE_MINMAX + | UVC_QUIRK_PROBE_EXTRAFIELDS) }, /* Generic USB Video Class */ { USB_INTERFACE_INFO(USB_CLASS_VIDEO, 1, UVC_PC_PROTOCOL_UNDEFINED) }, { USB_INTERFACE_INFO(USB_CLASS_VIDEO, 1, UVC_PC_PROTOCOL_15) }, -- 2.7.4