Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4246749pxb; Mon, 8 Feb 2021 11:22:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVi0oEVT7wIiROdIA9Bnn3IzSrw838XbNo6cGHxVdsyO5LXHS8RiEmuuv1xibNm6m4Vqwv X-Received: by 2002:aa7:de82:: with SMTP id j2mr18865784edv.313.1612812140873; Mon, 08 Feb 2021 11:22:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612812140; cv=none; d=google.com; s=arc-20160816; b=NL4U0gr0bH7I1lNvReN9lotvXH/ifYNuYrY/V71ggvzODvtoGfA9LOSfP+Z7Sg3mqr rsY88HUrVa0O6V49HLYtWZf7UlBcRHu5nFjh6qlBvTs4m+41QHQaRYVe9g3mptb93Gq8 E3AjKQchamS4s4qkaxL1M+pe1TkE/sRbnuMu15LG+DQurx7TOPkTEDt7t5+4n8f5MI4u HxXjoL0F5XCOJriQrwMSmDqyvBdhMdirydE6InnXjodz6mceVlJCmSxd+tUdtJGtfv/6 ZM/h7sc5WTtAU5TkuIABJ0bVI7qopRcHtuhV0YfPF8fJOpQDsPF56zmSC8nABwGaVAUY kWDA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OAU7KVIj1tZc/cCyjsqkZzCJcfiNcu4V6MVQhqD60y4=; b=smp4+XvpMb3HclfdnXWnEeKBYAUy1wPTYavKeFtjWbua+wVpJT0V6R4AB5oSE8R3BA FHFxBNmV8eEIJHK7yvF7jZ2FOFX7AQF8syNJsPQOny1ngWA4KerjFEB9zfWqETvz7xq3 8VTo2saCFHP7EjIea26/N/1Chf4OWDZKcLTpUk7aEWcIXtX+nqbbPsqHp9Z6lG5Z/Vg6 HmlRKRiy00JG92UsgEfnDEJBqW2Aj5TYfV8im3gNcni64F/jN4kqBaMNY7sDEsQc+AXB Uml/C9uI1XSN8ERwcIBUs0X+1tZtjbFy46KQI0lvBLGQO9Oraxedfd96iahIMNuaLlXN wHJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UShluoJl; 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 i3si12004014edt.282.2021.02.08.11.21.55; Mon, 08 Feb 2021 11:22:20 -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=UShluoJl; 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 S235399AbhBHTU0 (ORCPT + 99 others); Mon, 8 Feb 2021 14:20:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:46596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235134AbhBHR7r (ORCPT ); Mon, 8 Feb 2021 12:59:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3BB6A64E7D; Mon, 8 Feb 2021 17:58:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612807098; bh=ku4Jcw91KaEot449Rj+HDA/w0UTPu7uPeCWL4rDZq2Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UShluoJl4eiOjvMWX8+nPcoyk37R/8+/cE/q3gDUOjg0jWizm/qRJKRH1y9KGEu0F 2Sv0xHZxw4H4zcIOtWHeU4/qWeiD0wOPEi44i/LUkr8x2IPJcoUMes4m0c9r8r4Pjl Lihom+EikW+dqV328jDxGxw1zG/e/qCrMU1jDDHeQ73rk9kjwGDdDd1fKmtKDI6cBn JGEhnDgvea/FhEIUc/vYx3mFJhYmfZookPExh/bs2EqxnwbuRzuYApaSTV0rZcOLDp HEC8dDTi4FBzQocO/EkjFxHOKW9QZQlaF9DfcQDYO7qODaJ1TiWz7Iv1a/1GCtYfCv uTKLccK8pHkkQ== 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 5.10 08/36] Input: xpad - sync supported devices with fork on GitHub Date: Mon, 8 Feb 2021 12:57:38 -0500 Message-Id: <20210208175806.2091668-8-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210208175806.2091668-1-sashal@kernel.org> References: <20210208175806.2091668-1-sashal@kernel.org> 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 8c73377ac82ca..3d004ca76b6ed 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -215,9 +215,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 }, @@ -296,6 +304,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 }, @@ -429,8 +440,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