Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp742534ybz; Wed, 15 Apr 2020 17:59:47 -0700 (PDT) X-Google-Smtp-Source: APiQypJj5Aw8hWH/D1fCIkLI9nQhNe3zO1Ip7onmjxa127xXuW+4aGZTo0jTyUzjSnw83FWw8SXZ X-Received: by 2002:a17:906:5608:: with SMTP id f8mr7720178ejq.190.1586998787727; Wed, 15 Apr 2020 17:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586998787; cv=none; d=google.com; s=arc-20160816; b=zwhSrwh8gMmI3Z4I2ctmf6ed9/V9MbF/rhfIWUf3ud2SAAcDVrwfa0BfB3ITAZyJ8B O3W5sLCLRIRKHSTUX1KEJGQfw3GmO4AROP7DKgSr4z1RkBZHxrn8nO3H/nHCnk6qAdvT nSlTtnJBZfWk5aIMXTr6sfO+ZFaZ4YeN/9pH/hnPCVJWA0UuevV2AGSBrFqU5lgYyUMX pYJdmGLsdYYEI5Y0MCCOSRc5gSHiKK6n3P1fVb3idYZNZ1U4ctMOYePBTn2Vg33uOvDc ifgTOhfOw9k9qJYt1at62fb11Znt9IhZxGWHXGLp44K/h5ta9pnumqStCidJsG7xmKVz EgGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=+lgH9QEXgssaM2l+t80P4gQY7lGRB9KmgdYKNpUDs6o=; b=VU/0RWsXKh8Nh1EHt04kWkincLTJb7YYUwH7I9ElWxXNwge46tjaoxMsSmy3noUMyJ BRSNcOqtc6NAQqEZX/Z3cIvoOWKyuVF8WePvnm/sdT2U2M46jLeL0WBRkMEqiBmtH2kA xPc8wbzSjjk22n29t8Z0/qNiMX4vLkqVHsZ2t1CnHw8/vdy/cbhQofIVgECEb2vwNm1y RSgoG+r4aylJvORDDqm8/8cuV1n81Z6CyOXZGk8s9AvvxjrnupikdDtqRBW2tspZV4dR E3ohF7mXiq3Amub0PuYu5MCVU/SSNqhZU1rnNnXuos2GuhDRvZshUvdlduhCPfm3A1ql KmMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=RMiUNy2e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o18si7866441edr.30.2020.04.15.17.59.24; Wed, 15 Apr 2020 17:59:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=RMiUNy2e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2441725AbgDOTOk (ORCPT + 99 others); Wed, 15 Apr 2020 15:14:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1416889AbgDOS7z (ORCPT ); Wed, 15 Apr 2020 14:59:55 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1457C061A0C; Wed, 15 Apr 2020 11:59:54 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id r24so4937660ljd.4; Wed, 15 Apr 2020 11:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+lgH9QEXgssaM2l+t80P4gQY7lGRB9KmgdYKNpUDs6o=; b=RMiUNy2eQfnY3aZ1nGyJOaQD/7k7Bhwn1NGMoOyEJsKa4Dymv7l733xXw82+YXBxa5 HD6yD4dS4Z+0jafFk8nqJ1iSsMlCuurc1SHknGc8LLoMAG0DUHCD+HT5VkT/fxYJR8FB VYNOk1TiBTmJgkaMKCIsKYrqvW5Ji3Ylf7ChsI4Fkwur0oMWK50q9lTSGkDh7cD+LIku EmX9Br2zCpDM1EJoYRUcSSJ4RUDIYOzz4GSedf981nT6k1uKWu3szryS3s0QMsFLTi/v +e2K6gHcbglGR83H5vK0u7yOLotn+3eQVvPc3OSteP/AlFXOqV9pIftX5yYP2T05AcHJ UXMw== 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:mime-version :content-transfer-encoding; bh=+lgH9QEXgssaM2l+t80P4gQY7lGRB9KmgdYKNpUDs6o=; b=Y+LHiMUxc1H7ciybuDnfp1BEWspq6Rr92Ci7jt+8rU8B3zhTmrrQn9d1STP3Vm7GUO 0jbQlI04ns344t5OLgLqkrO6zTIZDoTRpR5RmzCHOM+D1H9E0GoyRZtOn2zbwvbbbV91 U2ZlJ+Vv1HGFk+RLRUY4eK6GKt6x48qpsFegFzpO3CYvN38hXRv+pThPwXIXnUJH0CJL hyIwG++edGDajOvdjcJYg4Txmy0w1hLCTpkRMjTYxdWbTsxbcPYIl7xeFkd3Qs1K8JUc oHBZ/IW1j8Wt3CUWyxzmGpMqHEHjADozvKuITUIBz91hjHN4W+MvXEWZmR24KZ+2xA3S cifA== X-Gm-Message-State: AGi0PuZCUqpYpzO691ufQ+UxaJyxSSN9SHt+J7xLpl7XZXS7aceepuuw kNuNV6CfuuytA9T2cRf+VZVUDTnk8/Q= X-Received: by 2002:a2e:870f:: with SMTP id m15mr4201151lji.16.1586977193345; Wed, 15 Apr 2020 11:59:53 -0700 (PDT) Received: from luk-pc.lan (host-46-186-7-151.dynamic.mm.pl. [46.186.7.151]) by smtp.googlemail.com with ESMTPSA id z9sm17026303lfd.9.2020.04.15.11.59.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Apr 2020 11:59:52 -0700 (PDT) From: LuK1337 Cc: LuK1337 , Dmitry Torokhov , Allison Randal , Greg Kroah-Hartman , Thomas Gleixner , Richard Fontana , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: xpad - Update xboxone fw2015 init packet Date: Wed, 15 Apr 2020 20:59:40 +0200 Message-Id: <20200415185941.388910-1-priv.luk@gmail.com> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Appending { 0x05, 0x20, 0x02, 0x0f, 0x06 } to xboxone_fw2015_init fixes an issue where the controller is somewhat stuck in bluetooth mode until you plug it into Windows PC. Signed-off-by: LuK1337 --- 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 6b40a1c68f9f..894fa81f717a 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -455,7 +455,8 @@ struct xboxone_init_packet { * or later firmware installed (or present from the factory). */ static const u8 xboxone_fw2015_init[] = { - 0x05, 0x20, 0x00, 0x01, 0x00 + 0x05, 0x20, 0x00, 0x01, 0x00, + 0x05, 0x20, 0x02, 0x0f, 0x06 }; /* -- 2.26.0