Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4116491pxb; Mon, 8 Feb 2021 08:19:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxujM5nMz+R39qk93ny7a2zc5lLx6krc1GivC4fhftOD1oHdAQXTwak8FALfHjhXEbVFRpY X-Received: by 2002:a05:6402:19a:: with SMTP id r26mr18729955edv.54.1612801176522; Mon, 08 Feb 2021 08:19:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612801176; cv=none; d=google.com; s=arc-20160816; b=ErHyFK5ZvZTsHIJyHRbl9N/iTARijFLk2Pw2noAkcOoawK6HWpApyJAMACVgs3JIYW 3pru248Gb6Ug2PwQUyqrqk9YJTbEmQVvLRvPTKMQaDEQh6kb49VddMy53KPB5uaWJ4qf wusgm6IEUP4aAYo3UYQuR9j7cnBEVvdVeLMZSmKjAciWaSc8oRprY6Zu0zKrBWXNNVel eL4ku1waqRP56cqfAGdF969KEWr2YWxqQgZa12/6hJKG4yb1qxCoBXZ2P4tThKmiHdLW i3s6yPVSITj+ioukpNrHjcNLdEfCecQ3VLZLiTSZWlZDcMVe2N+pjFhscUCVTTxthDPU Mxrg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+ZVCarXEXbxHzsxLYqrtHFqXrhj1P1C/N3LcXB8w9+A=; b=yP0e8AVDMcNmUBNOSouA8XtRkA1ZpvxctBOUbdhOyMTzMmL2iSEZV5MpRqTe8sO9Qh IjDOHYKT1YAwnJR2P7LAPdfkbzjr47FDTAEoF/ETYo1U+sKwjLrckSMR5DoJelVNjBhC QhcFCRKiUV5vkW14L16sxgGIVxSAnzcbN4qQLAUpApodZv3jtimg5lhOdsV0rlqR7Pqo C515WBlkIjmiV+xJk+tANQD3pr2seR7eui4nVA4Jg6cptkQcBZguuPn317MCId2eAiZd exormRi/MW5Ww5KPdFEyp9H2wtMGS1l6HLs60V0guBXazEMpuKfabu5IaiJdobEDjjq4 05zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SGzaRs90; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x2si11283117ejn.747.2021.02.08.08.19.11; Mon, 08 Feb 2021 08:19:36 -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=@linuxfoundation.org header.s=korg header.b=SGzaRs90; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232712AbhBHQQV (ORCPT + 99 others); Mon, 8 Feb 2021 11:16:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:56398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231327AbhBHPJ4 (ORCPT ); Mon, 8 Feb 2021 10:09:56 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 05C3764ECD; Mon, 8 Feb 2021 15:06:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612796812; bh=+BOrOTXiaHwbABXS+rIMBSrNb6isxC1bdb5cOY6MML8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SGzaRs90BI1BKbZGTOz1rXf4cIR3vcLUV/l412R3GSoBGV8tJHOnMRrT4iBxUA/Yg HOXbgIVqzyPV8Ohu3MbDeRz1scuegqYTW9TT2CVcz2DbW/nRRlVYk9Xir+YNS9udur HAGvZtvz1iPDjiQnJJ0t42EYZ0U58PNzkRsPzqw0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Benjamin Valentin , Dmitry Torokhov Subject: [PATCH 4.14 28/30] Input: xpad - sync supported devices with fork on GitHub Date: Mon, 8 Feb 2021 16:01:14 +0100 Message-Id: <20210208145806.375227123@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210208145805.239714726@linuxfoundation.org> References: <20210208145805.239714726@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Benjamin Valentin commit 9bbd77d5bbc9aff8cb74d805c31751f5f0691ba8 upstream. 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: Greg Kroah-Hartman --- drivers/input/joystick/xpad.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) --- 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_t 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 */ { } };