From: Ishaan Dandekar <ishaan.dandekar@gmail.com>
To: linux-usb@vger.kernel.org
Cc: gregkh@linuxfoundation.org, nikhilsolanke5@gmail.com,
Ishaan Dandekar <ishaan.dandekar@gmail.com>
Subject: [PATCH v2 0/2] Fix initialization for Generic Clone X-Input Gamepads
Date: Sun, 26 Jul 2026 22:44:21 +0530 [thread overview]
Message-ID: <20260726171423.42850-1-ishaan.dandekar@gmail.com> (raw)
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(-)
--
2.34.1
next reply other threads:[~2026-07-26 17:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-26 17:14 Ishaan Dandekar [this message]
2026-07-26 17:14 ` [PATCH v2 1/2] usbcore: Add quirk for 255-bytes initial config read Ishaan Dandekar
2026-07-26 17:14 ` [PATCH v2 2/2] usb: quirks: Add ShanWan gamepad to quirk list Ishaan Dandekar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260726171423.42850-1-ishaan.dandekar@gmail.com \
--to=ishaan.dandekar@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
--cc=nikhilsolanke5@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox