From patchwork Sun Feb 5 00:30:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cameron Gutman X-Patchwork-Id: 9555813 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9564C60236 for ; Sun, 5 Feb 2017 00:32:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8253F269DA for ; Sun, 5 Feb 2017 00:32:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75CEB26BE9; Sun, 5 Feb 2017 00:32:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 349FD269DA for ; Sun, 5 Feb 2017 00:32:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751893AbdBEAcX (ORCPT ); Sat, 4 Feb 2017 19:32:23 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34568 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751861AbdBEAbj (ORCPT ); Sat, 4 Feb 2017 19:31:39 -0500 Received: by mail-pg0-f68.google.com with SMTP id v184so5455560pgv.1; Sat, 04 Feb 2017 16:31:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qVmFNkKc1DJ8KH+R7MNv2sKhNoPGeXTmIjZOunO8SyI=; b=l0skhLl8ODz4lFcDjp/BtPI8jpAn2c9NJspKPI53Hs9jN8NSK0DsiO7fNEYO40v3DZ Yf35Qb4d4kTLKKqnMhXzqm2xSL0H4TeGqdx67VtJOL663ocdFZg+GKFbPWDxvGL39mVH wN/QAGpiyuDzg9W48WG6p1xIWitOry3sN6dLTbQBL4ItPxcH0u1so+og/GgnyO4v8ReD XvMzbx23cBlucSgJMafhBVRz2D8GvKRGTctgbEDEbehLlHfoy/RtNTHdm+P3kaxugC4h sUPNeLq8IXLX9aKiCe/me5lj8SLDe3HxeY78t94v23CLZWoyTqHslYZ2o1qzl8VVEKKi dQyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qVmFNkKc1DJ8KH+R7MNv2sKhNoPGeXTmIjZOunO8SyI=; b=eJTVdTi7OZ5M0VbQy2eF7iJzycOvIZxHvzZQsoiv4tVk3m1zrGn5Kdd9LtSRdckR90 573jxQiYUh3bAAx1BcHTLx+j5k8C7RcQcDxuctjwaJ58nuybGQL3HLq8zNVoheJyeL9F GEI6NKvK4Bt2NSgNMrq1N9ECQsnXGReo03I83dRblvtcU7m2M+NYnlDyyFZXLQGrrloV 0WsV+3v/robvCLU1NyR4cK5MkibRhXUuHoZPDlXPTGoQkYV+oqjQr+T/daXnzou9mEWg XMIdpO4QkgfU4o+DOuHO4S7dJYx6egOGCu1LFSCxHiZYRaepEZwLLSIIzEku8ayC33A2 W5sQ== X-Gm-Message-State: AIkVDXKKJVYD7ZgHs4F3C1uYz0dAe23HDSJGil3kVYYvkMfgmEejgPxmxQUChID1eBMjsg== X-Received: by 10.98.33.131 with SMTP id o3mr5315123pfj.86.1486254698234; Sat, 04 Feb 2017 16:31:38 -0800 (PST) Received: from localhost.localdomain ([174.127.240.168]) by smtp.gmail.com with ESMTPSA id s8sm77744303pfj.30.2017.02.04.16.31.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Feb 2017 16:31:37 -0800 (PST) From: Cameron Gutman To: dmitry.torokhov@gmail.com, rojtberg@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Cameron Gutman Subject: [PATCH 3/5] Input: xpad - send rumble on Xbox One init to fix PowerA pads Date: Sat, 4 Feb 2017 16:30:00 -0800 Message-Id: <20170205003002.28160-4-aicommander@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170205003002.28160-1-aicommander@gmail.com> References: <20170205003002.28160-1-aicommander@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some PowerA pads require a rumble packet to start sending input reports. Signed-off-by: Cameron Gutman --- drivers/input/joystick/xpad.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 3f19f32b..13f298d 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -358,6 +358,13 @@ static const struct xpad_output_packet xone_init_pkt[] = { * or later firmware installed (or present from the factory). */ {{0x05, 0x20, 0x00, 0x01, 0x00}, 5, true}, + + /* + * A rumble packet is required for some PowerA pads to start + * sending input reports. One of those pads is (0x24c6:0x543a). + */ + {{0x09, 0x00, 0x00, 0x09, 0x00, 0x0F, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00}, 13, true}, }; #define XPAD_OUT_CMD_IDX 0