]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
usb: quirks: Add ShanWan gamepad to quirk list
authorIshaan Dandekar <ishaan.dandekar@gmail.com>
Sun, 2 Aug 2026 12:01:29 +0000 (17:31 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2026 15:25:44 +0000 (17:25 +0200)
The ShanWan Wireless Gamepad (dongle ID 2563:0575) crashes with a -71
EPROTO error during standard enumeration because it expects a 255-byte
initial configuration request. Add this device to the quirk list to
use the USB_QUIRK_WINDOWS_CONFIG_REQ_SIZE flag.

Signed-off-by: Ishaan Dandekar <ishaan.dandekar@gmail.com>
Cc: stable <stable@kernel.org>
Link: https://patch.msgid.link/20260802120128.38302-1-ishaan.dandekar@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/quirks.c

index f5a60ccf21d3d45a22bf638f93a99e4035f09440..b5b577f0b931cad999fbec6a130b2fd9dcbe74f1 100644 (file)
@@ -593,6 +593,9 @@ static const struct usb_device_id usb_quirk_list[] = {
 
        { USB_DEVICE(0x2386, 0x350e), .driver_info = USB_QUIRK_NO_LPM },
 
+       /* ShanWan Wireless Gamepad */
+       { USB_DEVICE(0x2563, 0x0575), .driver_info = USB_QUIRK_WINDOWS_CONFIG_REQ_SIZE },
+
        /* UGREEN 35871 - BOS descriptor fetch hangs at SuperSpeed Plus */
        { USB_DEVICE(0x2b89, 0x5871), .driver_info = USB_QUIRK_NO_BOS },