Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10782399imu; Thu, 6 Dec 2018 06:45:11 -0800 (PST) X-Google-Smtp-Source: AFSGD/VWCmQJKJQbjKdXnn9YHd/GBMdv3S+ukOusV1MytitX/yBLAt4P6YH/0Yi/gaPMxdwSi5CW X-Received: by 2002:a62:4d81:: with SMTP id a123mr29724357pfb.122.1544107511795; Thu, 06 Dec 2018 06:45:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544107511; cv=none; d=google.com; s=arc-20160816; b=o3z1KpnumtWevZzYTXS39eq1aBEDz06A7kZgCUi0UhKSwUU2k8Sk64ugltO6l4bAL1 00jKARKXS1OylSjsQ8K6uoeFk2fQKat+xY03yaKvMjUPlWZX7AOAM+r1fGSUU+m8Gnuo 9GYtaZ24N+QheRaGBBHBSm0AWivJS84hQG8FvZOOMcDquxRPZJL32km8NQVYsssCiefb 03ZaPFG36O0MGuzvLybmuZxrrEs6Xci6ApvvA2peE4zZPnEFtvDyMSroX6rA9pWYK+mk hae7R7Ob7oEYq3OR1ZSZMbjdtxH6shPNdxQM9ZtsN/KU7gL9pUTcZmTz2BK9cshC4aBe ZPXw== 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=yGqPe0EB5+fG2lOskU6X53rIUTEyDkeClUScxf12cSk=; b=ugOjSip2Z/Nzg6PtkGKacrgWM2IkXHvRdxZcpMvNviM3AaePGUU9AFFWMzhwhUtFy/ djqKY45FrAhbh1d79Qn2HshzOiqdWI4SAXv+BjluuCpc3ICkBtjQts6dfQ6+R+aIH1xk PHpBnzzz5eMe/t8ewKsSDUgrhbAqui7kLkjxATfBiViB8bxolsdKeupfVMZlZ7NSPjJd HGXypk5x2R1IXjzz2jDI0TX2i+k63AfnUiz7IbZsP9vnTBNKT5pWCAVxq0UTEech7qxA 4OvsqIVnzYh57JudidYBi2trqFDpYVf/qCZQp+ofrZoRTeS2mhBG6G577t2h+SG1Nbw1 QdLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BwxDOmse; 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 r197si483474pfr.192.2018.12.06.06.44.30; Thu, 06 Dec 2018 06:45:11 -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=BwxDOmse; 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 S1730547AbeLFOmo (ORCPT + 99 others); Thu, 6 Dec 2018 09:42:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:47046 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730522AbeLFOmm (ORCPT ); Thu, 6 Dec 2018 09:42:42 -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 AB31320661; Thu, 6 Dec 2018 14:42:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544107361; bh=BPsbMR7EKmKU/tbEl2Oj+YPwB/omr6wBPE1N2uQgTYw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BwxDOmseyBvQAiw8IWACfto5Lez9ePxV9JVNejhQjaYYW2kpQVj5UdbxI7h3mD9gv M0NynS/4HwkWjVRzuVjSo5TB5SNk/LY28i8sCPpP+xwtSG8ERLh++ghrMqzOp1V+Wb j8Qzt+m7XumDl+k1zSBDLNL5TQTtMgFzbIGuZliI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Cameron Gutman , Dmitry Torokhov Subject: [PATCH 4.14 33/55] Input: xpad - quirk all PDP Xbox One gamepads Date: Thu, 6 Dec 2018 15:39:07 +0100 Message-Id: <20181206143003.500936323@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181206143001.749982936@linuxfoundation.org> References: <20181206143001.749982936@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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. ------------------ From: Cameron Gutman commit a6754fae1e66e9a40fed406290d7ca3f2b4d227c upstream. Since we continue to find tons of new variants [0,1,2,3,4,5,6] that need the PDP quirk, let's just quirk all devices from PDP. [0]: https://github.com/paroj/xpad/pull/104 [1]: https://github.com/paroj/xpad/pull/105 [2]: https://github.com/paroj/xpad/pull/108 [3]: https://github.com/paroj/xpad/pull/109 [4]: https://github.com/paroj/xpad/pull/112 [5]: https://github.com/paroj/xpad/pull/115 [6]: https://github.com/paroj/xpad/pull/116 Fixes: e5c9c6a885fa ("Input: xpad - add support for PDP Xbox One controllers") Cc: stable@vger.kernel.org Signed-off-by: Cameron Gutman Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/joystick/xpad.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -483,18 +483,18 @@ static const u8 xboxone_hori_init[] = { }; /* - * This packet is required for some of the PDP pads to start + * This packet is required for most (all?) of the PDP pads to start * sending input reports. These pads include: (0x0e6f:0x02ab), - * (0x0e6f:0x02a4). + * (0x0e6f:0x02a4), (0x0e6f:0x02a6). */ static const u8 xboxone_pdp_init1[] = { 0x0a, 0x20, 0x00, 0x03, 0x00, 0x01, 0x14 }; /* - * This packet is required for some of the PDP pads to start + * This packet is required for most (all?) of the PDP pads to start * sending input reports. These pads include: (0x0e6f:0x02ab), - * (0x0e6f:0x02a4). + * (0x0e6f:0x02a4), (0x0e6f:0x02a6). */ static const u8 xboxone_pdp_init2[] = { 0x06, 0x20, 0x00, 0x02, 0x01, 0x00 @@ -530,12 +530,8 @@ static const struct xboxone_init_packet XBOXONE_INIT_PKT(0x0e6f, 0x0165, xboxone_hori_init), XBOXONE_INIT_PKT(0x0f0d, 0x0067, xboxone_hori_init), 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(0x0e6f, 0x02a6, xboxone_pdp_init1), - XBOXONE_INIT_PKT(0x0e6f, 0x02a6, xboxone_pdp_init2), + XBOXONE_INIT_PKT(0x0e6f, 0x0000, xboxone_pdp_init1), + XBOXONE_INIT_PKT(0x0e6f, 0x0000, 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),