USB: quirks: add DEVICE_QUALIFIER quirk for Mobapad C2 Lite gamepad
PATCH 1/1 USB: quirks: add DEVICE_QUALIFIER quirk for Mobapad C2 Lite gamepad
The Mobapad C2 Lite gamepad in its "Xbox 360 Controller for Windows" mode (USB ID 2345:e06e) fails to enumerate on Linux and enters an endless connect/reset loop. A USB trace shows the device returns its device descriptor, but then stalls the Device_Qualifier request and stops answering any further control transfers, so the host resets it and the cycle repeats indefinitely.
The device works on Windows, which does not issue a Device_Qualifier request. Setting USB_QUIRK_DEVICE_QUALIFIER so the host skips that request lets the device enumerate normally; the configuration descriptor is then read at its usual size without problems and the controller binds as an xpad gamepad.
Tested on two hosts (x86_64/xhci and Raspberry Pi 3B/dwc_otg).
--- drivers/usb/core/quirks.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/usb/core/quirks.c +3 -0
@@ -586,6 +586,9 @@ static const struct usb_device_id usb_quirk_list[] = {/* VIA Labs, Inc. USB2.0 Hub */ { USB_DEVICE(0x2109, 0x2817), .driver_info = USB_QUIRK_NO_LPM }, + /* Mobapad C2 Lite gamepad - stalls on Device_Qualifier request */ + { USB_DEVICE(0x2345, 0xe06e), .driver_info = USB_QUIRK_DEVICE_QUALIFIER }, + /* Raydium Touchscreen */ { USB_DEVICE(0x2386, 0x3114), .driver_info = USB_QUIRK_NO_LPM },
Signature · 1 line
2.43.0
[email protected]
AI reviewSashiko has reviewed this patch and found no issues.
Quoted 13 lines
The Mobapad C2 Lite gamepad in its "Xbox 360 Controller for Windows" mode (USB ID 2345:e06e) fails to enumerate on Linux and enters an endless connect/reset loop. A USB trace shows the device returns its device descriptor, but then stalls the
Device_Qualifierrequest and stops answering any further control transfers, so the host resets it and the cycle repeats indefinitely.The device works on Windows, which does not issue a
Device_Qualifierrequest. SettingUSB_QUIRK_DEVICE_QUALIFIERso the host skips that request lets the device enumerate normally; the configuration descriptor is then read at its usual size without problems and the controller binds as an xpad gamepad.
Quoted 3 lines
Tested on two hosts (x86_64/xhci and Raspberry Pi 3B/dwc_otg).
Signed-off-by Danny Zimmer <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1