Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2521623imu; Thu, 29 Nov 2018 06:21:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/UjmruZexwUOm5bk6AJBd/gG0/qRKVTYfJtQfUkGCDz3O6IPKzGFiliNoaxJ9uChwkWuPAZ X-Received: by 2002:a63:d301:: with SMTP id b1mr1417784pgg.61.1543501286556; Thu, 29 Nov 2018 06:21:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543501286; cv=none; d=google.com; s=arc-20160816; b=j224r0ltppOq3Xg8C2zpinW2+DQv3Su2DOddF/QYwnE1RpKdMafvtKF0sAfX5wl8wP cR8wQDG0XCKT+cNKauCigJiNNXa7rbpvbwS7ATnb33Bg411Pg+SeATteBJs+xfuUn/2z DjYtX1yI4PZAov1d50VXDacOhw5xvOCWh1MbyQy0gUE5Q/0GGpwdIzZh3jKdZ7StD9kf G+J4DYuAc+/GB8KSGV6NQMZ+nhZ59QjugKK4sbSwlG8kKR+WqoWOsrKeTRzZHLub88TO 0kjqM0Fq624lqOC9Lbcbr9339VrtgHKIjAZ4qzasv0bBJ1lfmGsdoVAAjbNoTW8lcwSS lBKg== 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=ZrYD3tgVDAFgoIz74qZ+gIc+1aZlMLsWRuFHQCnIMCw=; b=SZ80XVxmv+wpQ7+ygSn5jd+8/d+4JYNA1PNJv7fIb2lPq3dBQqbPLFVfaaOZCLFFev 5sv/7akIcgVf52XGF+GOWmViuS4f8QXU2Hgx9mGMgJppd5HbTRxm1GjJlEjujti7C3qf +xwyczTiy1N/10DvAQ1D4aQpQlbd41sMkNR/uI9iprfieB5o0/xtivINo3J4Y1YP9F9o 0baD9rKJdLofFz27pSrNrTWB1XvwSf1z+vBxgBXMXAuDihNxzuQc2fGubiAf+FnYp5+v HvAJt/svzfhcgdus7jXHycGTDRGlbkm9bNLEv+iiBWz1PYW7ntxoMIGLWGTqsS2i1Nnd 49gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WPevAkLF; 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 v141si2453293pfc.260.2018.11.29.06.21.11; Thu, 29 Nov 2018 06:21:26 -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=WPevAkLF; 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 S1731205AbeK3BZS (ORCPT + 99 others); Thu, 29 Nov 2018 20:25:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:48636 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729806AbeK3BZR (ORCPT ); Thu, 29 Nov 2018 20:25:17 -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 1015D21019; Thu, 29 Nov 2018 14:19:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501186; bh=QZtSs2H7DMbORaqFAyw9bWEbwVeU9mYsDI3w/j7dB+Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WPevAkLF4Oygn3+V9qcx7AAbzgsWCovaEX2pFDwd3rrHnvNBlzDERGQR19tT3KseG qqDM4za8s6qgem6btqbE1PuSW9L2vT2snmOXKmqgczWQyUAHZoD5RbBOSHMJRarnTg 5iBRqd7Os4jqOS2OERii/oZ1imhS04Y9+ZxjFFSQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Pierre-Loup A. Griffais" , Pavel Rojtberg , Dmitry Torokhov , Sasha Levin Subject: [PATCH 4.4 42/86] Input: xpad - xbox one elite controller support Date: Thu, 29 Nov 2018 15:12:07 +0100 Message-Id: <20181129140113.758069253@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129140109.832117862@linuxfoundation.org> References: <20181129140109.832117862@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.4-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 6f49a398b266d4895bd7e041db77a2b2ee1482a6 ] added the according id and incresed XPAD_PKT_LEN to 64 as the elite controller sends at least 33 byte messages [1]. Verified to be working by [2]. [1]: https://franticrain.github.io/sniffs/XboxOneSniff.html [2]: https://github.com/paroj/xpad/issues/23 Signed-off-by: Pierre-Loup A. Griffais Signed-off-by: Pavel Rojtberg Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/joystick/xpad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index c8897fc3202c..dcf9053a801e 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -87,7 +87,7 @@ #define DRIVER_AUTHOR "Marko Friedemann " #define DRIVER_DESC "X-Box pad driver" -#define XPAD_PKT_LEN 32 +#define XPAD_PKT_LEN 64 /* xbox d-pads should map to buttons, as is required for DDR pads but we map them to axes when possible to simplify things */ @@ -129,6 +129,7 @@ static const struct xpad_device { { 0x045e, 0x028e, "Microsoft X-Box 360 pad", 0, XTYPE_XBOX360 }, { 0x045e, 0x02d1, "Microsoft X-Box One pad", 0, XTYPE_XBOXONE }, { 0x045e, 0x02dd, "Microsoft X-Box One pad (Firmware 2015)", 0, XTYPE_XBOXONE }, + { 0x045e, 0x02e3, "Microsoft X-Box One Elite pad", 0, XTYPE_XBOXONE }, { 0x045e, 0x0291, "Xbox 360 Wireless Receiver (XBOX)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360W }, { 0x045e, 0x0719, "Xbox 360 Wireless Receiver", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360W }, { 0x044f, 0x0f07, "Thrustmaster, Inc. Controller", 0, XTYPE_XBOX }, -- 2.17.1