Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2531139imu; Thu, 29 Nov 2018 06:29:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/WKARriZSucBBZCuHGQLalpDqckW3u3TlBCoxlP2P0h0rLF6OQPixIZrREHWCtJPeqjsZkJ X-Received: by 2002:a17:902:7e0d:: with SMTP id b13mr1717547plm.154.1543501759395; Thu, 29 Nov 2018 06:29:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543501759; cv=none; d=google.com; s=arc-20160816; b=zzoLCkhSrBU8MXak8cjbKhzKYUNUFFJFZu5s6abkOB4tyKPNK4DPNSX8FAJHgprmZt 1fp+MlhF600nZ26aHDlQHgWg9yJHU4NvyneezQ8ESfw9oPR+ii7GsEZIDphXwEQWFGI4 nFT0Y9jxc2KWWKOX5IRoTf4m3fM9jdGzEg1ubeHXHOWuWtcdKCh7ovlx+euZRBjg/oRp HUBkLKtHyhUZAcdd4H3VOs08Eu7qjRaLZKpkKZPSpzCwczzp+NZTZs+EiFCtkuGR2fKm 6qbpO7g12WDK9RwktuZUj+6Rg8Jv3bS146urLJ/az1EcK3fsFEIQdnLsdHWAyLaQi8LX jNmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=X/WDzpuT51B5x5+lmCzR8+R45ww8JcXEX0Ue3y2nf/Y=; b=GDlDXJzu0Kp9LUcfwuHCN5YVirHA86QfMPHSlJePSkp76Ab0fklztBirO0P69Vnz0Y xurVYmsagu4HX/ZXzdpLtILFrMcVku1gXJDG6j7C33eEaEyyZ5kmVXLD/iWzsT5qsVoS 8HW4O0xEjUILWf1DXcLJ8mS7rmsMH1tnTHqThjSKGI9rCdd6V6dCUSFI1DnMvy/HUR7p PcjUJCyzw/Ved/SX6Nmp1fMa6IohFL9crjHgjNDI+cytuTkJyMyMzYizUrDz15DodwkX 4hj96MqblSc0wpmnuEimiRCX+gkv9+kYqCnNn3lKEWLT9RXZbqrHv6PPRFHeFpQ1aXMz 7K3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mr9vucAl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f124si2416763pfa.1.2018.11.29.06.29.04; Thu, 29 Nov 2018 06:29:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mr9vucAl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387594AbeK3Bcl (ORCPT + 99 others); Thu, 29 Nov 2018 20:32:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:32784 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732959AbeK3Bck (ORCPT ); Thu, 29 Nov 2018 20:32:40 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 94B342145D; Thu, 29 Nov 2018 14:27:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501628; bh=sBjj2y8mNv1OWS2SLnMhS43bPeIETakPDg6fgWlH8wY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mr9vucAlqyqAS/WsogSMEwE953wXCbCbQmCrjTBCsDkM5WZBMx79ofMQxZQi8NbOA CS+E8h/iFndoQQME1JXMpCc9iQH2shYuLrIQmQ8Oq2cPl8UnT+LoMtVKQXqjtfuC/u S5KcN4O+2GZ3+oZzUXip0D5kWdeScXSSVGyh3H4Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Francis Therien , Dmitry Torokhov , Sasha Levin Subject: [PATCH 4.14 075/100] Input: xpad - add PDP device id 0x02a4 Date: Thu, 29 Nov 2018 15:12:45 +0100 Message-Id: <20181129140105.256543105@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129140058.768942700@linuxfoundation.org> References: <20181129140058.768942700@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit c6c848572f4da0e34ffe0a35364b4db871e13e42 ] Adds support for a PDP Xbox One controller with device ID (0x06ef:0x02a4). The Product string for this device is "PDP Wired Controller for Xbox One - Stealth Series | Phantom Black". Signed-off-by: Francis Therien Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/joystick/xpad.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 53f775c41cd1..d2a1857fdae5 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -231,6 +231,7 @@ static const struct xpad_device { { 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, 0x02a4, "PDP Wired Controller for Xbox One - Stealth Series", 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 }, @@ -480,7 +481,8 @@ static const u8 xboxone_hori_init[] = { /* * This packet is required for some of the PDP pads to start - * sending input reports. One of those pads is (0x0e6f:0x02ab). + * sending input reports. These pads include: (0x0e6f:0x02ab), + * (0x0e6f:0x02a4). */ static const u8 xboxone_pdp_init1[] = { 0x0a, 0x20, 0x00, 0x03, 0x00, 0x01, 0x14 @@ -488,7 +490,8 @@ static const u8 xboxone_pdp_init1[] = { /* * This packet is required for some of the PDP pads to start - * sending input reports. One of those pads is (0x0e6f:0x02ab). + * sending input reports. These pads include: (0x0e6f:0x02ab), + * (0x0e6f:0x02a4). */ static const u8 xboxone_pdp_init2[] = { 0x06, 0x20, 0x00, 0x02, 0x01, 0x00 @@ -526,6 +529,8 @@ static const struct xboxone_init_packet xboxone_init_packets[] = { XBOXONE_INIT_PKT(0x0000, 0x0000, xboxone_fw2015_init), XBOXONE_INIT_PKT(0x0e6f, 0x02ab, xboxone_pdp_init1), XBOXONE_INIT_PKT(0x0e6f, 0x02ab, xboxone_pdp_init2), + XBOXONE_INIT_PKT(0x0e6f, 0x02a4, xboxone_pdp_init1), + XBOXONE_INIT_PKT(0x0e6f, 0x02a4, xboxone_pdp_init2), XBOXONE_INIT_PKT(0x24c6, 0x541a, xboxone_rumblebegin_init), XBOXONE_INIT_PKT(0x24c6, 0x542a, xboxone_rumblebegin_init), XBOXONE_INIT_PKT(0x24c6, 0x543a, xboxone_rumblebegin_init), -- 2.17.1