Re: [PATCH v5 3/3] media: uvcvideo: add quirks for Razer Kiyo Pro webcam

Ricardo Ribalda
2026-04-09T06:50:03Z

Hi JP

When we add a quirk to the list we include the output of `lsusb -v -d
1532:` to the commit message. Please add it to your next version.

Thanks!

On Tue, 31 Mar 2026 at 02:38, JP Hein <jp@jphein.com> wrote:
>
> The Razer Kiyo Pro (1532:0e05) is a USB 3.0 webcam whose firmware has
> two failure modes that cascade into full xHCI host controller death,
> disconnecting every USB device on the bus:
>
> 1. LPM/autosuspend resume: the device fails to reinitialize its UVC
> endpoints on resume, producing EPIPE on SET_CUR. The stalled
> endpoint triggers an xHCI stop-endpoint timeout.
>
> 2. Rapid control transfers: sustained rapid SET_CUR operations
> (hundreds over several seconds) overwhelm the firmware.
>
> Add the device to the UVC driver table with:
>
> - UVC_QUIRK_CTRL_THROTTLE: rate-limit SET_CUR (50ms interval) and
> skip error-code queries after EPIPE to prevent crash trigger #2.
>
> - UVC_QUIRK_DISABLE_AUTOSUSPEND: prevent USB autosuspend transitions
> that trigger crash #1. Same approach as Insta360 Link.
>
> - UVC_QUIRK_NO_RESET_RESUME: avoid the fragile reset-during-resume
> path. Same approach as Logitech Rally Bar.
>
> Cc: stable@vger.kernel.org
> Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2061177
> Signed-off-by: JP Hein <jp@jphein.com>
> ---
> drivers/media/usb/uvc/uvc_driver.c | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c
> index b0ca81d92..e8b4de942 100644
> --- a/drivers/media/usb/uvc/uvc_driver.c
> +++ b/drivers/media/usb/uvc/uvc_driver.c
> @@ -2920,6 +2920,23 @@ static const struct usb_device_id uvc_ids[] = {
> .bInterfaceSubClass = 1,
> .bInterfaceProtocol = 0,
> .driver_info = (kernel_ulong_t)&uvc_quirk_probe_minmax },
> +
> + /*
> + * Razer Kiyo Pro -- firmware crashes under rapid control transfers
> + * and on LPM/autosuspend resume, cascading into xHCI controller
> + * death that disconnects all USB devices on the bus.
> + */
> + { .match_flags = USB_DEVICE_ID_MATCH_DEVICE
> + | USB_DEVICE_ID_MATCH_INT_INFO,
> + .idVendor = 0x1532,
> + .idProduct = 0x0e05,
> + .bInterfaceClass = USB_CLASS_VIDEO,
> + .bInterfaceSubClass = 1,
> + .bInterfaceProtocol = 0,
> + .driver_info = UVC_INFO_QUIRK(UVC_QUIRK_CTRL_THROTTLE
> + | UVC_QUIRK_DISABLE_AUTOSUSPEND
> + | UVC_QUIRK_NO_RESET_RESUME) },
> +
> /* Kurokesu C1 PRO */
> { .match_flags = USB_DEVICE_ID_MATCH_DEVICE
> | USB_DEVICE_ID_MATCH_INT_INFO,
> --
> 2.43.0
>

--
Ricardo Ribalda