Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2417858ybz; Sun, 19 Apr 2020 00:48:57 -0700 (PDT) X-Google-Smtp-Source: APiQypKxvOjIfwx1OHkXjcMaVKXRzIKVMBJOEESwSeNseK9G5/iaoieQ2spRg4aCtouD3vnN9yyL X-Received: by 2002:a05:6402:1c07:: with SMTP id ck7mr9844295edb.202.1587282536751; Sun, 19 Apr 2020 00:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587282536; cv=none; d=google.com; s=arc-20160816; b=KSu3ckKviF7V8xdx+/jsAB4kKpuU5pSP6jnrQM5QEGcfVaJz8ZRcpVX5US+O6wT1sc fe+0PLVFewU2rSs3rTKuACxQt6CxcrUUQIPEMDJlkrgbaH/lwtJCifFgC0+j1mgxBcxQ McLzAf8eWwqFiMEGRlpevcUGOMTqzA2CPmEPWEB+z6W92B5Ea+MoGtQYZMlA3HYS+DuA XsG7D31tU7X6ardGpJTljzFL+mObakXafsSAzMu6xW7P6hdpNei3QAfCjfGEpARQ+IrP JNYKac+NQfLvdHst0qdFYb+1vq8EeVNCcPV9YpdHzrO0jSJtLKYynr5+LESQUoUh0aTr GllA== 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 :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=XEstN1SgEvGh1nrX3CNzhK3F/ve2pikk0hjy+pd1w1g=; b=hAgxMpY/yfK4RxXC6xzbO1dbWh/+Te2mF9pyx5ikMX1ZLWeedkHr89OQGHQLA2phM5 prT2vh4BE5boGhXQbDQl2iYzIBrFu4SQiO+RfamsqGStr0GOq1FXvdDn+PDdMYDRMqjt lXDdU6okRNpb7JNqCvlA/YKlRL3QcN3YOD8MM/2YpHu+wBILfTMM/rMX8OKAA52xqH0d TkXBtEzL2Nqs1+noziY2dxodH+ZvxevRzihMhhUNAXMFxPvDeAw0CNHfC3uJfIMGtoaa t4ZdF2cVFPlDyNzCGAlw9c4GcqYm0+7GRmdchDphNReNF+skUtpGWjcau/j0uq4szGv2 nTww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=G1WAVyJY; 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 g15si17579598eje.418.2020.04.19.00.48.34; Sun, 19 Apr 2020 00:48:56 -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=G1WAVyJY; 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 S1726067AbgDSHqf (ORCPT + 99 others); Sun, 19 Apr 2020 03:46:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725903AbgDSHqe (ORCPT ); Sun, 19 Apr 2020 03:46:34 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3139BC061A0C; Sun, 19 Apr 2020 00:46:34 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id k21so6519125ljh.2; Sun, 19 Apr 2020 00:46:34 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=XEstN1SgEvGh1nrX3CNzhK3F/ve2pikk0hjy+pd1w1g=; b=G1WAVyJYw1nYjFB9yztOZwG50VPCmIsppMClBRoZtoYJM3ocAdhXWwHeBRkm6lurB1 PX6Q+JC0Eg5YhYMoIynB5PZw3PTShXh8VTuGWOfNJC2D30SaKU0mTD2ZpglYqXjffrNB b1dC5K07Yny3hEi2hCMETuG981J+3N2iC8VTIcEOV8eYDBCOWPOb8oRbiDGCNhdewn5Q N4YmTz2pNlFgo18BfbU6n6N4Hk4BKTOrZCpKqKIJQOOl/JubwVzgeKBbhnGlhtgstVi5 pNQ8zlmGy1myQ/T1iJ1pjVqJjX7SMyF1FFe1V4iFdLPlNA0Dv5Irz1wUSYdWyna7TNwL EUlA== 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:mime-version:content-transfer-encoding; bh=XEstN1SgEvGh1nrX3CNzhK3F/ve2pikk0hjy+pd1w1g=; b=G07CTWcyOfq5YwF2KLk1/ODoUyaJuWd58aVzOcWlof9LQZ1usQa8lnurp66as7fFc/ BlaEO48pwLHWUAKcQbOXMiY8xldp8oj2pJmlkMeb8FN8mDRR2pLK4AVwWPHtFk2RQbPz ziUJ46rMT27ARbEiiu8uH0QMwOE1dk2KqEe65wIOOVUV+TH7VYkollQjdooEbdTwUd/H Wx8qCedEjIRw//vFe6xXA3Il1LSE8qCfusKpOODlbZW4UVUc0Z8u+6t+wOlRR/JetSA/ VtzhIMZYZaA4/zVCzBnd07mOR2WqkQOu1CxT9SLIYEyQ8fMiUdyc2CkCh69a1IddNXZM dhGg== X-Gm-Message-State: AGi0PuZ/FHqMHCrXHY9NHM3kQMBBKcMWVSA2Mz5q10GlLNW7ipeQoFtL 2x0hs4l4oZdhgaz313y+TlTQiecX3aw= X-Received: by 2002:a2e:760c:: with SMTP id r12mr6461805ljc.139.1587282392694; Sun, 19 Apr 2020 00:46:32 -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 f2sm10954407lja.30.2020.04.19.00.46.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Apr 2020 00:46:31 -0700 (PDT) From: LuK1337 Cc: =?UTF-8?q?=C5=81ukasz=20Patron?= , Dmitry Torokhov , Greg Kroah-Hartman , Richard Fontana , Thomas Gleixner , Allison Randal , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: xpad - Update xboxone fw2015 init packet Date: Sun, 19 Apr 2020 09:46:23 +0200 Message-Id: <20200419074624.9955-1-priv.luk@gmail.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200419041651.GD166864@dtor-ws> References: <20200419041651.GD166864@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 From: Łukasz Patron 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: Łukasz Patron --- 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