Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1843397pxb; Wed, 9 Feb 2022 05:48:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxyyWb29r7k6Lxxabc+bqRG4StCmm1fodzAp/r1yuqoTm2yh3MRWe/DSrTboZeXINCE2V7 X-Received: by 2002:a63:904c:: with SMTP id a73mr1973071pge.196.1644414480736; Wed, 09 Feb 2022 05:48:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644414480; cv=none; d=google.com; s=arc-20160816; b=wM15Y9yUXjuas4ZQeGJOEEBqGzqsTVBeQYUmYBUJ+foNu7Yq8srwW4jgno8DG/g0Gp 1tInUs9tGtShj1x1HEyJrV0ZXN6gT3kvlrZdowJ6cUl0gYG9XHj7kMlKA0RXEkY6dWB5 uTwH7TJ6GVgP6hwybK4pJM2ty5lyIvfy+f7UJGLcV4otzZ+7YzgM86xq/jbqVgNnfcaK xLyqguT/IdM7b8enEO/9b8s6GfE8QEAf0EMv/GNSR7J8Lfou7DjHznckTHJZPXTtR2u/ KiPr+/5tkDxz1NYb9ffPddqn4Cur8K4J7RrP4/RNL/iDOT0xlGugWKO1IwdWCifZbXQO elZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=uYUsC8D7J1WUo+J6bx2eQOdH/dy8+lejaehWcpk6GBo=; b=UnMK74W4eusn+Bd+xniTycd/kVHyvpAWkZgqr7a+tx6/LqLRZT8Eg0N7H1xWdsktNs RHBNSmn3dbArs9jWT+tIYGk1KHESUMtd9sg4rNPV3ZrVadszDASdbmYzpBCJ5SU6guiV tJzvp3sGoK1JPbTk9csmW407Jd4rs/jtAQXFLKrCQhpBa8wDhcDw77XLSzDKHwilU7k8 qdFalEXdJVU6MHuIzyoU5rSdnkA8wr+n6siL1SHB0fsjEGiTE9iHgeyn2ipaHnoIC8/D 6DkpD4ul4vreVwvyaplYLoQAF+ucZbyqaipK3P56Y2Q4CQTj4RvvgjWzraTCQw+qcxsh TO0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@who-t.net header.s=fm2 header.b=Cy6QfLXN; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=l7NWThyw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y38si16739595pfa.204.2022.02.09.05.48.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 05:48:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@who-t.net header.s=fm2 header.b=Cy6QfLXN; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=l7NWThyw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 005DAE09F693; Wed, 9 Feb 2022 02:28:26 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236608AbiBIHU5 (ORCPT + 99 others); Wed, 9 Feb 2022 02:20:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231211AbiBIHUz (ORCPT ); Wed, 9 Feb 2022 02:20:55 -0500 X-Greylist: delayed 1200 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 08 Feb 2022 23:20:59 PST Received: from wnew4-smtp.messagingengine.com (wnew4-smtp.messagingengine.com [64.147.123.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C664EC0613CB for ; Tue, 8 Feb 2022 23:20:59 -0800 (PST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.west.internal (Postfix) with ESMTP id BBC9D2B000B2; Wed, 9 Feb 2022 01:22:35 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 09 Feb 2022 01:22:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=who-t.net; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; bh=uYUsC8D7J1WUo+J6bx2eQOdH/dy8+lejaehWcp k6GBo=; b=Cy6QfLXNK9ddNsaNfHFSY5yUDcum8yl8skzZav/ud1bLyWJm9i+H2N SpS9vCCPJNz3EhdX6R7bNHE5TwnmuGx8hrIQD6Ke0lkHiLJbv+2D2ISJOIreQAHp zlTudmXfA6fgBKWeb4RfttzjZQWairwAi8zEOMgLFJxJY266OitiKMn/iK2MofG9 Y032ZMNc6VTvKp3gwHwaew7HWyGX9/QdIbBhf0DRD1wOLtnReaJ41R42SS3SmjEp oq75I4DXcgyUGeXPi/hzmuRgvyhviRaNm0HYMkjmizn113WV1YDKi6lxcqn1pXRx LZ8ZfuZLRFyiOfWDfcDjJKW40pLzzwHw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=uYUsC8D7J1WUo+J6b x2eQOdH/dy8+lejaehWcpk6GBo=; b=l7NWThywEGOkQ9fm/3BjYdHvjllOQdFou P/ktkxkoeOk0+UMQHxyqxLMDe00JvlZvokZFpnP0mutFa97ynWnGo8+GsGhBd7bQ ePyOYOQBz4EOerYi1TAcjt83sS9D43+QnxOXJKeFixmU7+VSypaXxwfmSR1/UvN/ lx5NaMEW+l+WJtz1cXJ3QC0HjFm7vfzkWSjLntz67OFr2sSV/QDMd35z/GFGDkZP M9azGwsnoafqZ6IIIiQStgCwZi47lD8Zr5QsdqzprA/ndsSUMehWXwb3ul026Efp V9bPK/e6oTQYP5pUGjW3s6EtWzDNaG+jE+9TgsAf1c4cdmY6Lddrw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrheekgdeludcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheprfgvthgvrhcu jfhuthhtvghrvghruceophgvthgvrhdrhhhuthhtvghrvghrseifhhhoqdhtrdhnvghtqe enucggtffrrghtthgvrhhnpeehhfehfffgheelgeeuudelhefgvdefveekudevjeevjeev vefggefguddufeeuveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehpvghtvghrrdhhuhhtthgvrhgvrhesfihhohdqthdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 9 Feb 2022 01:22:31 -0500 (EST) Date: Wed, 9 Feb 2022 16:22:26 +1000 From: Peter Hutterer To: Benjamin Tissoires Cc: Jiri Kosina , Dmitry Torokhov , Jonathan Corbet , Ahelenia =?utf-8?Q?Ziemia=C5=84ska?= , Ping Cheng , Aaron Armstrong Skomra , Jason Gerecke , linux-input@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 12/12] Input: docs: add more details on the use of BTN_TOOL Message-ID: References: <20220126161832.3193805-1-benjamin.tissoires@redhat.com> <20220126161832.3193805-13-benjamin.tissoires@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220126161832.3193805-13-benjamin.tissoires@redhat.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 26, 2022 at 05:18:32PM +0100, Benjamin Tissoires wrote: > The HID core stack used to be very relaxed considering the BTN_TOOL_* > usage. With the recent commits, we should now enforce to have only one > tool at a time, meaning that we can now express that requirement in the > docs. > > Signed-off-by: Benjamin Tissoires > --- > Documentation/input/event-codes.rst | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/Documentation/input/event-codes.rst b/Documentation/input/event-codes.rst > index b24ae7d292cc..41b1fa647dab 100644 > --- a/Documentation/input/event-codes.rst > +++ b/Documentation/input/event-codes.rst > @@ -137,7 +137,10 @@ A few EV_KEY codes have special meanings: > code should be set to a value of 1. When the tool is no longer interacting > with the input device, the BTN_TOOL_ code should be reset to 0. All > trackpads, tablets, and touchscreens should use at least one BTN_TOOL_ > - code when events are generated. > + code when events are generated. Likewise all trackpads, tablets, and > + touchscreens should export only one BTN_TOOL_ at a time. It is s/export/set to nonzero/ to avoid any ambiguity with setting the evbit on the device vs setting the value to nonzero. > + however accepted to switch tool in one EV_SYN frame by setting the old > + BTN_TOOL_ at a value of 0 and the new one at 1. I would even s/accepted/recommended/ but this LGTM to me, thanks. Acked-by: Peter Hutterer Cheers, Peter