From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8738F51597E; Fri, 2 Oct 2026 17:42:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790962934; cv=none; b=Nvmdw0h8p6gRZvNGCsZaeqPIlHLV52f8IxjwokKeP/iZUG1vzbbPGK/3Q41dbbaHZ0iDTeF8PHzMyrOBR4xR7OvJR9zP+qDTLEWfYWjhOirMHPoXhG0A3OyJBPKWQhInMo1SdikwMDYMbeU/P0iIwy/0LCpq8wPhbPAvYd+77JQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790962934; c=relaxed/simple; bh=ySmUfiueg+zy+uHJkj/4+LaFw5QbXcW3U8cDZXq6jEk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=K1WPWdJ4JKXd82JMJOJWsgbvp08YoT1YjYNhjtdCByfjwgxXd1+og61x7IzYCf5N7ltc826b/pQCki5p7zsmzNJUq2WIsmw/twvfnLYE0up6ZI4TIm+Epnv//uw0OYKc9V/CPnOznOHDSM37z1/w4J7GryuGmzQCS8xINuxeX/Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=P0z+MKzi; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="P0z+MKzi" Received: by smtp.kernel.org (Postfix) with ESMTPS id 652D1C2BCF4; Fri, 2 Oct 2026 17:42:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790962933; bh=ySmUfiueg+zy+uHJkj/4+LaFw5QbXcW3U8cDZXq6jEk=; h=From:Date:Subject:To:Cc:Reply-To:From; b=P0z+MKziFDI+fli0LhckeQt6diJVIU9cYzj/iHn6no/XHndj1JMuOxLNfVrwQbAUq WtCsqBqiTLge5RI+hEb4CDdNGtCIqmH8ht9q7RfrieSMcoty/dok6n+EABfeWMk0Nl TTD0TQbwptIaKFaEtcTNBvR5v3xD9hULAtsKGzOjJtvBs1N/k5MCE36UW5WVLECn5k HxeJ1Z3tt0TBougGmi7WktKFbUFullW+MK8f35gw/3ykpeT79D1wpGIOtk4VouwQiT DxiEbtof/V9sYrg4ck6R8ftVuUWraHNahztyAu/O8ZWIKsbPtExHYjuhOjbIYzAY7U dsmBUPcqaRv1Q== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5122DCA5FC4; Fri, 2 Oct 2026 17:42:13 +0000 (UTC) From: Ali Resool Tuama via B4 Relay Date: Fri, 02 Oct 2026 20:42:12 +0300 Subject: [PATCH v2] USB: quirks: add USB_QUIRK_WINDOWS_CONFIG_REQ_SIZE for GameSir G7 SE Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261002-master-v2-1-24b05d8792b5@gmail.com> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/2WNwQ7CIBAFf6XZs5hCUxBP/ofpAXDbrpFioDaah n+X1qPHSebNWyFhJExwrlaIuFCiMBUQhwrcaKYBGd0Kg6iFrLVQzJs0Y2RKa6ta2zQ1SijyM2J P7z107X6cXvaObt7WmzFSmkP87E8L37y/6MIZZ1r2/akVmlvRXgZv6HF0wUOXc/4CMf+HZ64AA AA= X-Change-ID: 20260927-master-799b75b330e6 To: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Ali Resool Tuama X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1790962931; l=2770; i=aliresool567@gmail.com; s=20260927; h=from:subject:message-id; bh=9ZSSjiM2avTu7kQAcgRfCkpowkxycBnoAQrsblaGhXc=; b=k4ZzvnKVBJx+wQg4up7zVG4XrzjB7zf8daV7By0ZeG++iAwrbvWyOA5SianTEDJbYPDJh0VMx QroLNjUkNBaDQJCMe30Qo4yDmZJFmklciKHLCtlNWrb+OnaMAhA0Uwj X-Developer-Key: i=aliresool567@gmail.com; a=ed25519; pk=s/zyZoG6z3JyJokqs9ZIcSAb8PgriZ1QW+mgffBV90w= X-Endpoint-Received: by B4 Relay for aliresool567@gmail.com/20260927 with auth_id=1071 X-Original-From: Ali Resool Tuama Reply-To: aliresool567@gmail.com From: Ali Resool Tuama The GameSir G7 SE wired controller first enumerates as 3537:10a0 and then re-enumerates in a mode it picks from how the host enumerated it. When the configuration descriptor is fetched the Linux way, 9 bytes followed by the full 80, the controller disconnects about 1 ms after its string descriptors have been read, before SET_CONFIGURATION, and comes back as 3537:1082, a generic HID gamepad without force feedback. When the configuration descriptor is fetched in one 255-byte request, as Windows does, it comes back as 3537:1010 in Xbox One (GIP) mode, which xpad already supports, including rumble. Skipping the device qualifier requests (USB_QUIRK_DEVICE_QUALIFIER) makes no difference; the configuration descriptor request size alone decides the mode. Add USB_QUIRK_WINDOWS_CONFIG_REQ_SIZE for the 10a0 identity, as is already done for the ShanWan Wireless Gamepad. Cc: stable@vger.kernel.org Assisted-by: claude-opus-5-5 Signed-off-by: Ali Resool Tuama --- Tested on 7.2.7 (x86_64, xHCI) by setting usbcore.quirks=3537:10a0:r at runtime. With it, the controller settles as 3537:1010 on every plug-in, is bound by xpad as "GameSir G7 SE", and rumble works through xpad's force feedback. Without it, it settles as 3537:1082 every time. The patch itself is against v7.3-rc5. usbmon of the 3537:10a0 enumeration without the quirk: GET_DESCRIPTOR (CONFIGURATION) with wLength 9, then 80, then string descriptors 0, 2, 1 and 3. The port reports a disconnect about 1 ms after the serial number string, and the SET_CONFIGURATION that follows fails with -EPROTO. With the quirk, the only difference is a single wLength 255 configuration request, after which the device re-enumerates as 3537:1010. --- Changes in v2: - Use my full real name in From: and Signed-off-by: - Link to v1: https://patch.msgid.link/20260927-master-v1-1-96ff85291b25@gmail.com --- drivers/usb/core/quirks.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c index b5b577f..a4bcbe9 100644 --- a/drivers/usb/core/quirks.c +++ b/drivers/usb/core/quirks.c @@ -612,6 +612,9 @@ static const struct usb_device_id usb_quirk_list[] = { /* ezcap401 - BOS descriptor fetch hangs at SuperSpeed Plus */ { USB_DEVICE(0x32ed, 0x0401), .driver_info = USB_QUIRK_NO_BOS }, + /* GameSir G7 SE */ + { USB_DEVICE(0x3537, 0x10a0), .driver_info = USB_QUIRK_WINDOWS_CONFIG_REQ_SIZE }, + /* DELL USB GEN2 */ { USB_DEVICE(0x413c, 0xb062), .driver_info = USB_QUIRK_NO_LPM | USB_QUIRK_RESET_RESUME }, --- base-commit: fd179f8a05be3ccae366b9b96e176b51fbe54aab change-id: 20260927-master-799b75b330e6 Best regards, -- Ali Resool Tuama