Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4259294pxb; Mon, 8 Feb 2021 11:43:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnRo+rV7piCSakQHeBxWIZIqIy2Davj9U/H+1aq7alI6tPrVlqt/lWTpUTLhhQSaiyxuEU X-Received: by 2002:aa7:c901:: with SMTP id b1mr18824063edt.329.1612813433662; Mon, 08 Feb 2021 11:43:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612813433; cv=none; d=google.com; s=arc-20160816; b=TvZrBPFrLTsr9C5O9HZOFJxq/afejaPlJ4g+li/ZPsm/u2f91d0z1TE3166Be/OA4S 5jY06u2hoZcgt+gDPrDL/9rKylux7zSzysgVf0xACGwvbj1dvspnUPh7j7+l7bD0oPY1 /B10C+AShkpFutGJ5zFUuZwc5CcFbVpPkHmCji1MKmPMgxuli3kMydSW6DzPGyM67oGc 1+H4L/HeA8Cwt3G0cytMVfuOX8w7eIp0bFqFz/EFIgrm/QCfQQX3tNp0l0GTtO6AMHJO zbQfZIDQqt8oKJCJv6uVuiExbfnOZkEZzPlNipnMHiubtxFSalNpjw9C+b1QLE8+R8aj yS4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=OKnbs/tKjJr3D1Hzx7XAaRdagNocL0CB+Dd9F5vdxH4=; b=Uq1fG8hoZ+FZoI6q9rPubBcESeyhB5m8+m1y9yKy9kz3oWvxqfbzrMfBsmBlrowa2Y 3xXWN4zH6SNsNpcqiqIfbXY9FF8ri7EXwx5yg6FF/y3sRa667DYFy8HbPWrgz+ODkSvr Ryx3AVrZxtTm3SBjHcfVGkadgV+LDQv10E7gqugUgmVz0foZqBj60Y+AgWfSDifSxe+Q uzNQxlUwJlAhKvHyiaruawXHKFRQdwMbFDLQZCAeK+XFsvp7rpBns1ZpmnGOOTA8qnUI yvS/vY3TA749ygi63cLLIjgqEB3gyLYE9hFib+EfI2cj7v8gZjLX7WZU6gZPGR1IQW/n aiGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nEUnIbkv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mj13si11444722ejb.610.2021.02.08.11.43.29; Mon, 08 Feb 2021 11:43:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nEUnIbkv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236474AbhBHTm6 (ORCPT + 99 others); Mon, 8 Feb 2021 14:42:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:47386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232778AbhBHSER (ORCPT ); Mon, 8 Feb 2021 13:04:17 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B916B64EED; Mon, 8 Feb 2021 18:00:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612807202; bh=4ybdrJVYeo2/UDf8Lh/IUnsF4PV76/uempj2Vv0zRac=; h=From:To:Cc:Subject:Date:From; b=nEUnIbkvwiV6UYdptzLceaaQHZL7NtmKd6C1ylRo0zNCg/gcSteEL75Y59fFccsSW kwRyAcHBoGdbLdY96DG5Ik2uMLRsvv6qjE+1YiK6lKyzYHFpdNd1HpzVziAeKHbhx4 HOEbRlt4A/96H+NQucbnUsthhyENP7KiEawVLSSEIHp5L4as6A25npPmQW6mNgDa6o WxSYZvRVv74m0a4t+aJMQed2dJZDWWD2t7T2H+KGIUAPV59zHGfyVbELVA6mTy4njF 6ZTIpIPGAcrp54pjDmSpH+dkqdyEwi+PC8CSqhC/IaqNCiTDD9ja3R2y3OLB/6yAPz 5fXA1CNoq8rzw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Benjamin Valentin , Dmitry Torokhov , Sasha Levin , linux-input@vger.kernel.org Subject: [PATCH AUTOSEL 4.9 1/4] Input: xpad - sync supported devices with fork on GitHub Date: Mon, 8 Feb 2021 12:59:57 -0500 Message-Id: <20210208180000.2092497-1-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Benjamin Valentin [ Upstream commit 9bbd77d5bbc9aff8cb74d805c31751f5f0691ba8 ] There is a fork of this driver on GitHub [0] that has been updated with new device IDs. Merge those into the mainline driver, so the out-of-tree fork is not needed for users of those devices anymore. [0] https://github.com/paroj/xpad Signed-off-by: Benjamin Valentin Link: https://lore.kernel.org/r/20210121142523.1b6b050f@rechenknecht2k11 Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/joystick/xpad.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 637f1347cd13d..815b69d35722c 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -232,9 +232,17 @@ static const struct xpad_device { { 0x0e6f, 0x0213, "Afterglow Gamepad for Xbox 360", 0, XTYPE_XBOX360 }, { 0x0e6f, 0x021f, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 }, { 0x0e6f, 0x0246, "Rock Candy Gamepad for Xbox One 2015", 0, XTYPE_XBOXONE }, - { 0x0e6f, 0x02ab, "PDP Controller for Xbox One", 0, XTYPE_XBOXONE }, + { 0x0e6f, 0x02a0, "PDP Xbox One Controller", 0, XTYPE_XBOXONE }, + { 0x0e6f, 0x02a1, "PDP Xbox One Controller", 0, XTYPE_XBOXONE }, + { 0x0e6f, 0x02a2, "PDP Wired Controller for Xbox One - Crimson Red", 0, XTYPE_XBOXONE }, { 0x0e6f, 0x02a4, "PDP Wired Controller for Xbox One - Stealth Series", 0, XTYPE_XBOXONE }, { 0x0e6f, 0x02a6, "PDP Wired Controller for Xbox One - Camo Series", 0, XTYPE_XBOXONE }, + { 0x0e6f, 0x02a7, "PDP Xbox One Controller", 0, XTYPE_XBOXONE }, + { 0x0e6f, 0x02a8, "PDP Xbox One Controller", 0, XTYPE_XBOXONE }, + { 0x0e6f, 0x02ab, "PDP Controller for Xbox One", 0, XTYPE_XBOXONE }, + { 0x0e6f, 0x02ad, "PDP Wired Controller for Xbox One - Stealth Series", 0, XTYPE_XBOXONE }, + { 0x0e6f, 0x02b3, "Afterglow Prismatic Wired Controller", 0, XTYPE_XBOXONE }, + { 0x0e6f, 0x02b8, "Afterglow Prismatic Wired Controller", 0, XTYPE_XBOXONE }, { 0x0e6f, 0x0301, "Logic3 Controller", 0, XTYPE_XBOX360 }, { 0x0e6f, 0x0346, "Rock Candy Gamepad for Xbox One 2016", 0, XTYPE_XBOXONE }, { 0x0e6f, 0x0401, "Logic3 Controller", 0, XTYPE_XBOX360 }, @@ -313,6 +321,9 @@ static const struct xpad_device { { 0x1bad, 0xfa01, "MadCatz GamePad", 0, XTYPE_XBOX360 }, { 0x1bad, 0xfd00, "Razer Onza TE", 0, XTYPE_XBOX360 }, { 0x1bad, 0xfd01, "Razer Onza", 0, XTYPE_XBOX360 }, + { 0x20d6, 0x2001, "BDA Xbox Series X Wired Controller", 0, XTYPE_XBOXONE }, + { 0x20d6, 0x281f, "PowerA Wired Controller For Xbox 360", 0, XTYPE_XBOX360 }, + { 0x2e24, 0x0652, "Hyperkin Duke X-Box One pad", 0, XTYPE_XBOXONE }, { 0x24c6, 0x5000, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 }, { 0x24c6, 0x5300, "PowerA MINI PROEX Controller", 0, XTYPE_XBOX360 }, { 0x24c6, 0x5303, "Xbox Airflo wired controller", 0, XTYPE_XBOX360 }, @@ -446,8 +457,12 @@ static const struct usb_device_id xpad_table[] = { XPAD_XBOX360_VENDOR(0x162e), /* Joytech X-Box 360 controllers */ XPAD_XBOX360_VENDOR(0x1689), /* Razer Onza */ XPAD_XBOX360_VENDOR(0x1bad), /* Harminix Rock Band Guitar and Drums */ + XPAD_XBOX360_VENDOR(0x20d6), /* PowerA Controllers */ + XPAD_XBOXONE_VENDOR(0x20d6), /* PowerA Controllers */ XPAD_XBOX360_VENDOR(0x24c6), /* PowerA Controllers */ XPAD_XBOXONE_VENDOR(0x24c6), /* PowerA Controllers */ + XPAD_XBOXONE_VENDOR(0x2e24), /* Hyperkin Duke X-Box One pad */ + XPAD_XBOX360_VENDOR(0x2f24), /* GameSir Controllers */ { } }; -- 2.27.0