Skip to content

Fix initialization for Generic Clone X-Input Gamepads

Ishaan Dandekar linux-usb stable 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Added missing Signed-off-by from transmitter to Patch 1.
- Wrapped commit message in Patch 2 to 72 columns.
- Removed trailing whitespace in Patch 2.
- Dropped the Input/xpad routing patch (sent separately to linux-input)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usbcore: Add quirk for 255-bytes initial config readDocumentation/admin-guide/kernel-parameters.txt drivers/usb/core/config.c drivers/usb/core/quirks.c +1 more+49 -70 replies
2/2usb: quirks: Add ShanWan gamepad to quirk listdrivers/usb/core/quirks.c+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] Fix initialization for Generic Clone X-Input Gamepads

This patch series fixes a hardware panic preventing certain generic X-Input clone controllers (specifically 0283:0001) from functioning correctly in Linux.

When the controller is plugged in, the USB core requests its configuration using a 9-byte request. The controller's firmware fails, disconnects, and shape-shifts into a fallback Android mode, completely losing its X-Input capabilities and haptic feedback (rumble).

Patch 1 (by Nikhil Solanke) builds the underlying core logic to allow a 255-byte config request (mimicking Windows behavior).
Patch 2 adds this specific controller's hardware ID to the new quirk list, preventing the crash and locking it in X-Input mode.

Note: While these USB patches keep the device stable in X-Input mode, a companion patch is being submitted separately to the linux-input subsystem (drivers/input/joystick/xpad.c) to ensure the device is routed correctly and retains full haptic feedback and functionality.

Changes in v2:
- Added missing Signed-off-by from transmitter to Patch 1.
- Wrapped commit message in Patch 2 to 72 columns.
- Removed trailing whitespace in Patch 2.
- Dropped the Input/xpad routing patch (sent separately to linux-input)

Ishaan Dandekar (1):
usb: quirks: Add ShanWan gamepad to quirk list

Nikhil Solanke (1):
usbcore: Add quirk for 255-bytes initial config read

 .../admin-guide/kernel-parameters.txt         | 10 +++++
 drivers/usb/core/config.c                     | 39 +++++++++++++++----
 drivers/usb/core/quirks.c                     |  7 ++++
 include/linux/usb/quirks.h                    |  3 ++
 4 files changed, 52 insertions(+), 7 deletions(-)
Signature · 1 line
2.34.1