Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp186243pxb; Tue, 2 Feb 2021 02:34:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyaO9ktMM/4VSttKybQ9csmwXRrGuwhQEODwYIzCTMLckjMvNU4Et8IxzyBM/1DTxqVfjSw X-Received: by 2002:a17:906:c00c:: with SMTP id e12mr21435682ejz.103.1612262050760; Tue, 02 Feb 2021 02:34:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612262050; cv=none; d=google.com; s=arc-20160816; b=XiJSwbG0Y+h0EZT6OZ1zoduO4yE/FSNfSmwl4X0k8JI7rxJSgHDPSpzyEnH5DQvW7g 4HMzIQzINppqwjXetu/qCCQMR6VBmlD3ZsOUq2gOJ/P1+imD73yHOTaYljvxfLlJlkqn MUuTZQew4O4CIWl4/VEDrCMeapaGgUoRvjPlnK7yWNQaRM/xUEyR9guzxyExzSZcaPdc 8G9+2MaoA6TdF+0fwF/0g0R2YfbiBYfR9py2h7Wcb+zOrL4uVH7sUgLLKZQ0ju8666lB gLOX1u/JuBvyswD7595lE7jLZkaYikVeNdhunX+M/JotmPcclC9TZKPx+vUMGcvtxjgk PFFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=ncIwNCVxpR3N1OQSHH17yW3HQDBS1RMNCKpYYezaaLI=; b=Hcbvgv3lvjhcc2wCCfA9RBTDa99OL27x6FLa4PCAQgQDDpcr4sgChryQL/6ctB09GF oBKD/Y9lUOcH/QNYeiHNjNAH5TP4BAlEC67gIe2Aheb/xnxtGedtvHDplpY8SPGWSisc NVwZuik3vJlLlSZCc9qOq1PP4Zy6KdrnSkzcCADO2qi/EMmkhOUun6EbVU2pXqQtLhyD YGw31IpoheXKnTV5sP28CMOaDs/oQo7O/B9BzGlQWg5cuegC0GnW55hwUmCuiWQIOsCd FL/BpaOGg93hsmoO/pg4bh2eT0TLM4o2cGUHD25wxvpl6+OXKGWjW4pbdQhZd141EPc+ 6TvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZIDdZCUm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si11622402ejj.220.2021.02.02.02.33.46; Tue, 02 Feb 2021 02:34:10 -0800 (PST) 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=pass header.i=@kernel.org header.s=k20201202 header.b=ZIDdZCUm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229783AbhBBKbn (ORCPT + 99 others); Tue, 2 Feb 2021 05:31:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:48646 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbhBBKbk (ORCPT ); Tue, 2 Feb 2021 05:31:40 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id CC84464F58; Tue, 2 Feb 2021 10:30:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612261860; bh=Hq6DP8Ix5+65mu2UHWhu/j5spne6YI5z5/93e1O5sm4=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=ZIDdZCUmLIU9nsJ/PoWj78gvHK0JozdsH9EUd8tEiP7VydQBrypRhjfoKNcR4Rv/1 kpRpuF2Ni/+shFhJcvpiousaeP3XqmgXh9C2WPjc0LKkVLczRCB9DiMb9YgSgRbsfB 668x0uuHB0+jWYXZUtvsEjYfLf2lszh41z20xaWXYNOXTHY43zZP7qsAEJ5D/yg67R HL0nPxRYd5ehs5PQADvsH5GcVhrPHHQOe/UP3ahexDmF50ol5Z97Y/IBjOHGiVKaq9 vkCspO8nGcVfGZFjHqNro/avoa6A0Zl8TaC35Q0F3rCt/2KvuW/5y4TxryPgaby1Uq wuVruzS4f5S+w== Date: Tue, 2 Feb 2021 11:30:56 +0100 (CET) From: Jiri Kosina To: Nicolas Boichat cc: Benjamin Tissoires , Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] HID: google: Get HID report on probe to confirm tablet switch state In-Reply-To: <20210115134212.v2.1.I41b9795e4b5bda7209eb9099aebdc6a29677391e@changeid> Message-ID: References: <20210115134212.v2.1.I41b9795e4b5bda7209eb9099aebdc6a29677391e@changeid> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 15 Jan 2021, Nicolas Boichat wrote: > This forces reading the base folded state anytime the device is > probed, to make sure it's in sync. > > This is useful after a reboot, if the device re-enumerates for > any reason (e.g. ESD shock), or if the driver is unbound/rebound > (debugging/testing). > > Without this, the tablet switch state is only synchronized after a > key is pressed (since the device would then send a report that > includes the switch state), leading to strange UX (e.g. UI > mode changes when a key is pressed after reboot). > > This is not a problem on detachable base attach, as the device, > by itself, sends a report after it is booted up. > > Signed-off-by: Nicolas Boichat Applied, thanks Nicolas. -- Jiri Kosina SUSE Labs