Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp815895ybn; Tue, 24 Sep 2019 09:57:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKoxHL+OuNZd1fy5j4BZL2whlcIwt5+d3a6Tb51qErKnAvkbQc3M6B5U0/mhOsfA4e22ZR X-Received: by 2002:a1c:a984:: with SMTP id s126mr1258421wme.26.1569344231549; Tue, 24 Sep 2019 09:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569344231; cv=none; d=google.com; s=arc-20160816; b=fGrrFk0bkKODZwST1VHV5AtFo59wSYB8vQ7a0Bv/oc7kWWRcfsjg4gaedyl28FMEmn 3HEYFQ20xova8VvLCN7fNmlAro2J4BsQVjJxjTqZBL/y5fZtDpws390UnR/ho9TB5WZI zxXmqvCl1imZucOV11BcDHqH0Cbl2uqyqw9AwRjTP5ofqS6DKLapWhovN7kloIIWBT20 Nr3CjEJfG+CdxuEdnwa1QVpTmRZDWW+AWkR8jiejh+uhJMT+GszTdqgY9rGMtgoaWPuX 9R2UjWBOHJ9hSHg0Ab5Rb7XFtgJyF8g1sQnazUnp1JCBCKDt3Jnedf3Zw+u0k5EZgcwb WEcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=2+aFLnlewjIToCxowqu+D7E4YgZLUBR8Fy+mD15jVPU=; b=wJspIJIWTXesqcKXzvyKYyAyEZ9IDzx79nkWBt4J/6O3O66QBijOsob+p6FiDGBCya QsKH6Wl0mAaTKA8XE/s39/gxtcBN1jiGntpOTuQxMJnD4nNMDEn4ayqqa1uIdROODy4v jXGTzXjgByBpNXDLB4e44JI6ScFbpO/kQFw2oQP/M8VnzugxJmB8qgJI0HR47Nh2gdoH 7SsRWr6dSdkNxvbRz5WuHG/Wv4oyxxczf5isRs317lavX5rH6minygTYbdkh7nAVhoIO rmLBXRr5Sr1lzcYvnDDyXersvkEvFj89UXqlbywz9NPJkuqo/V6g+baI+XzWGOhSVqKs e6ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=izQR+Ljq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c9si1446244edv.304.2019.09.24.09.56.48; Tue, 24 Sep 2019 09:57:11 -0700 (PDT) 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=izQR+Ljq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729923AbfIWJJa (ORCPT + 99 others); Mon, 23 Sep 2019 05:09:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:34224 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727935AbfIWJJ3 (ORCPT ); Mon, 23 Sep 2019 05:09:29 -0400 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (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 96D1721670; Mon, 23 Sep 2019 09:09:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569229769; bh=8RVElTFHvsRrDX3GxYgPYspbtm5Sp3n+wmCjOPQwbZE=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=izQR+Ljq1dVwLHm5KTtNGF79NJ/EL5R2/ffn+GssEW54+zd0wsz29hRhL0v9QXlZO ZtnDw4hGhTU6Nxps/8cTsVxYJlr5IYqnFn4tBOoWyapkPYT8OkGeWQziHbYIsxm3AK AG1ay2GLq4BEHEmIUoghAJlf3e3cuz3Q3bZsGPNg= Date: Mon, 23 Sep 2019 11:09:04 +0200 (CEST) From: Jiri Kosina To: Dmitry Torokhov cc: Nicolas Boichat , Benjamin Tissoires , Benson Leung , "open list:HID CORE LAYER" , lkml Subject: Re: [PATCH 1/3] HID: google: whiskers: more robust tablet mode detection In-Reply-To: Message-ID: References: <20190913220317.58289-1-dtor@chromium.org> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 15 Sep 2019, Dmitry Torokhov wrote: > > > The USB interface may get detected before the platform/EC one, so let's > > > note the state of the base (if we receive event) and use it to correctly > > > initialize the tablet mode switch state. > > > > > > Also let's start the HID interface immediately when probing, this will > > > ensure that we correctly process "base folded" events that may be sent > > > as we initialize the base. Note that this requires us to add a release() > > > > s/release/remove/ ? > > You are right. I'll fix that up when I am applying it (once 5.4 merge window is over). Thanks, -- Jiri Kosina SUSE Labs