Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2558320imu; Thu, 29 Nov 2018 06:53:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/VCnXTjSHfrCIgMdz9JIFe3EguD4kBOXlUjhgOOPuWnOxe6dDxVjYHGq7A8DOHE+9wznB6x X-Received: by 2002:a17:902:1745:: with SMTP id i63mr1713531pli.145.1543503210522; Thu, 29 Nov 2018 06:53:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543503210; cv=none; d=google.com; s=arc-20160816; b=RkGY9cA/Fa5jerm8LKRa+Q9HX8svXVQzbislHL5KGCQbBbGAJ+99UqsA8osFp1E/OF uR+fkDe6+2CxdyFUObriPVJlrur/5uY4u4PeIERjA+lVKKV9uoL+upMzM8ZG+JHvxfb7 ZG8pyar4PMUp8ig1e+2Qvnc20nUCuytzz0Q91Xi6uFXvMOnPoZwJbsRoX7TnTKYIa40Q wWUzLreXms1mx2Dl4QIsROUqBq7gEEF2tpanCzwb2YmupdaCIiTpacHOa6BrCx7oRP6O hgRno7AcRgHOHiXeuhYCxCpBIiotLZXy4QE7l0cNDjaW+Il1ulC5DAI38aDtFA2kJ8wZ AxQQ== 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=AtpKfqom6Ww8V4D573Vrjm6c2PfSLvjCBCdy6zuTtNY=; b=Wz6M47xSUxE82IT0Dcx2Rd5wtpWGH3KGyCGsdkOpQckXrtWxsd06mrEp7rVe7kl1aG V36Giwe5r8fzUcqICSlNvsBCUfNJRO9c0DlC2bAb5TpqEfA2artcKBsbJfTCNOb03+xC 1dgtNP4QiDgxtvRkH8nhPjHmWNu0la6mLEmTOQNmOwbRjU/vPcqkbBbUzoBq3GnhYrPW g/6wGLlZ/Wmgs4e1UKV9A95egddEisiCPQYH7ME8eTODTQhoI/0YCxePE+g5WT7D+aSM fbBwa+jcOLZAwmxCMlCGolhrFa/q3RpJ8j2+BCxP3QRTRgLf+yuBuUz505jwt1X0R+uE QP7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ImgwiA68; 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 r17si2141787pgh.299.2018.11.29.06.53.07; Thu, 29 Nov 2018 06:53:30 -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=ImgwiA68; 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 S1732580AbeK3B3r (ORCPT + 99 others); Thu, 29 Nov 2018 20:29:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:56360 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732523AbeK3B3p (ORCPT ); Thu, 29 Nov 2018 20:29:45 -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 EC36821104; Thu, 29 Nov 2018 14:24:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501453; bh=d/QHeNocKc53LdXb2Qocudzz+vpOVt+tcK9DSk+YN3A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ImgwiA68qhOsu8At0GsLWiOXVMTLEH3ZTTh7CobzdKVb8Q13GLLSmJTIolRB3FevO rkiChCeqXVF7vuFXqw1lWuDjWPt99R9+1oD05wMM33a6FKuUieajAwRPrpz/K0Ltb0 Rih0UKAaALaFeA52M516svpCk4Y4FyxHTA7RBaLA= 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.9 64/92] Input: xpad - add PDP device id 0x02a4 Date: Thu, 29 Nov 2018 15:12:33 +0100 Message-Id: <20181129140111.502118861@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129140106.520639693@linuxfoundation.org> References: <20181129140106.520639693@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.9-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 d88d3e0f59fb..298581b0f6c1 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -230,6 +230,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 }, @@ -478,7 +479,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 @@ -486,7 +488,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 @@ -524,6 +527,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