From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B77FD32B125 for ; Sun, 26 Jul 2026 13:23:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785072219; cv=none; b=uSqsuo6vD74mCv2AiiOW7jH32phWjBRHVXx+Fp50fMaz0z5yVV+bjI0jc0oPTQ3wOeIIz+luuSqSYwkHUhMtat1hFGTzFT60KSMmiE7gYrUa3GQkFEpnR79w0wAEMRYgt2h2ttCwI5Ip2b1X+1tBcUTA2rWosxhFbpNpoeCGdCg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785072219; c=relaxed/simple; bh=98xmMfFvolCVIJOp/NbDI8DPy0x63kxjr5+u8qKjbG4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=br0UG92bhCSR+bIiA7HFSla7iDhdkHtvmtfV0Cocl4y5n4JJmdl93KbCLW4O7rYRfTKlRutQr2LvQlMdUaHEJ/OciO0HqFtA4sau3jwgIFUexHO1GlzNJJopYL+DVGEGW5y2j5BPSGCb+oW14qJ97HsU19CpHfw2/8NmStVznnM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cX5S+NBo; arc=none smtp.client-ip=209.85.216.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cX5S+NBo" Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-38dfe910e9dso1680734a91.3 for ; Sun, 26 Jul 2026 06:23:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785072217; x=1785677017; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=fompq4KZBbcRpS6b4gUBu00h6u2Ol8qMiXNV2HqKzL8=; b=cX5S+NBos1zP1/4NKvwwElpEKdMkKUVYzwKZmLdDYBZiAeLeb1l1BVnFJOiA6FmJ6t 7W35NtVjaDwYcxhQJuYNs/AuvMtvlDSkuAVK41qYju5SM/WzRc5wbhqa0lWanZjTG/iY NhtAQ3/gAdo6FnNuGTbdGZDD4BKXuXoas0YCrFVcm/ZoeORVzzs3T1CFurnEvc4OxDfM 7jc3xW+b19t/THV+w5ofum9+VkBWL6miSHqOkKJsHqMYY7731A7mjiON3rLVHjQ+U0Kx vviMRt87GKQXMqxoHFc8wk3bAixOqEcHoZAN/fMIf3/iH+bt0CNLq0Z0oiDvi9qG84/u P8Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785072217; x=1785677017; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=fompq4KZBbcRpS6b4gUBu00h6u2Ol8qMiXNV2HqKzL8=; b=S89jFTuYoV4GPpGfmvrJ9E0XD2uoFge68rYG+JbAO9Xi9D+Ks1gVRC90w2r+3w9lWh e3yvxWfYY3CjVnee7y+lMMaGOlrYabO4kIDNSaBqarEbh/uR3VRZAaffM/1G68eze06y h5MGz3b0uhOBEmbcrkjbV/m2DqkJfnqJ2u3w/El1c3ZXlhk0FuGGZ5D+ek0eECJayLGG b7r1FfDD4Odi7/8aie6x83pRV7Cyy9OjAptahjUO9v979QQzdSJteLukpSD4vfT0wyPy kFRpDZPpYQy1NUFIt2sWeioKvx2w9qH/vnMMntGAKIdSIh2E/8Yg8u5c7DbIGfh3fIdf myeQ== X-Gm-Message-State: AOJu0YxDTDb/897QQUt5tXflytYo7vEnZihkc90LfUIcqVZX5wWZuKt4 2whh8LGfZfBf4Ld0Mc0FkrTFRidtwoGOo6gzpLajYM05MWu81pgdKd1/xbyqocxR X-Gm-Gg: AR+sD12tc9/14Pus7wieULsXgYALAqI0x6Pujlr6Shq8Ra0WHXWx6LS16ETXW7VMVUv 5Gw57sXGWfXbnqYvys4/jdSLiCOP0M+AmGZAwB0wbF7ojCfaXsHB0U/9FxrlkMVJyep9fqdv1q5 jXikRJ6eXShYFi8YMh5fw+EFO3TYSwbKHBtOB55Qdzm7laJqJVhXWYsWjuH+CDSSYW7j9TTfP/+ 30ctnFd7m3tEtvN9ERo1o/pcnV3Fhe9A64ZzK9DKJXs+WRns2KCFNYz5TMLbee8v8e3+iLfLI06 sRO8tnyfE2STpyZ5CxQyakSNhTXusdrsZKHgXpD81NQu1arZ26r7lImrUfdX3ciUYlC5D7dQuBq FrWKZB3OQcJwVC+4wIsVfe+6coOy9IiyNO+uQC0egE1tgCTNFY1jpvggCJBZE+l0y4Td9yXScod /dEWZoFyQBazAPgA== X-Received: by 2002:a17:90b:5625:b0:389:8f6c:4d70 with SMTP id 98e67ed59e1d1-38f2963ce06mr4691503a91.28.1785072216761; Sun, 26 Jul 2026 06:23:36 -0700 (PDT) Received: from Linux.bbrouter ([115.96.217.226]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-314bc419e3asm20784436eec.11.2026.07.26.06.23.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Jul 2026 06:23:35 -0700 (PDT) From: Ishaan Dandekar To: linux-input@vger.kernel.org, linux-usb@vger.kernel.org Cc: gregkh@linuxfoundation.org, nikhilsolanke5@gmail.com, Ishaan Dandekar Subject: [PATCH 2/3] usb: quirks: Add ShanWan gamepad to quirk list Date: Sun, 26 Jul 2026 18:50:39 +0530 Message-Id: <20260726132039.28330-3-ishaan.dandekar@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260726132039.28330-1-ishaan.dandekar@gmail.com> References: <20260726132039.28330-1-ishaan.dandekar@gmail.com> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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 f5a60ccf2..97b1cdf0e 100644 --- a/drivers/usb/core/quirks.c +++ b/drivers/usb/core/quirks.c @@ -592,6 +592,9 @@ static const struct usb_device_id usb_quirk_list[] = { { USB_DEVICE(0x2386, 0x3119), .driver_info = USB_QUIRK_NO_LPM }, { 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 }, -- 2.34.1