Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4060218rwb; Fri, 30 Sep 2022 12:11:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7D/lukMjzhA0G5bL2SUuh6qSvt/3EXsLfobrZcvi37QD11D3akTgoU0zJ2yttefX0u7BAq X-Received: by 2002:a05:6402:5162:b0:457:6ef2:df3 with SMTP id d2-20020a056402516200b004576ef20df3mr8856756ede.128.1664565117317; Fri, 30 Sep 2022 12:11:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664565117; cv=none; d=google.com; s=arc-20160816; b=1FJ/2rEl5FLcb3i/RuIX0Nik4BeoQVMLImqTRHcDB6RKtzy0OvuuZ5uU3jzsvhACR+ mCOQJwh1YmHWx5bC9MhsEtgDM6cYvMs3jDrKKvIS41uTDsAMRPzS+ZhAmaCss7QLvu9g qkHnF/m6sFcYxa+pfDiWNJtiJNeh0w5A1kffXW99XqKXa4RK43AC3luzxoO9K210SZ36 pYxrUYfx4kP6JU99PQW+eJ4hw1HJugRlxcXlbd0TLP8Xq/BglM52H19Rr4iPMKCAwAC0 YB46iiusfC5pC0En3H35hOSWs38ARcVj9a+eXId32vytKYr50HHrSezD/9umvbeaSgyr /rbA== 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; bh=MZ1QKZutR7qmnF0tSQ5K80ENNLWUnpYLMPuYuggGHcE=; b=vKrzcZZsRIw6raGXH/nkj4jPeaahDlQHAUSZIuHDUCi/b1Aq5cW9RS9Z+/Tti6Ytwl yEyml7q6la9zxT0c/OusuDBglc4zMYWvv2MQCOGZ6t9eFNlnylmcd8oTkrdh4RzRgks1 ahZzkUhygqbFtyOqMEI+3Qf+FZl3bXPXhU/e3+pP7DFovHeZ+9SZuRSX6eHz1UpLsmCk Ja4UgFjRdDbiTcz/e30gOOBJLHIepvJ/IOXlr4Qsv9fLdVjw5OgD5rbT78e2Piz2O/O2 EldYuRvoVsbllHhaFVJwnuXhBefefCqYODcf4qqXgG6eytQaSNyVpD4QoljS99v4scS9 lVLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=e6aaG6N3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t30-20020a50ab5e000000b00457e997cb0asi2426618edc.169.2022.09.30.12.11.32; Fri, 30 Sep 2022 12:11:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=e6aaG6N3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230487AbiI3SPz (ORCPT + 99 others); Fri, 30 Sep 2022 14:15:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231251AbiI3SPw (ORCPT ); Fri, 30 Sep 2022 14:15:52 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9781B14C6; Fri, 30 Sep 2022 11:15:50 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id e11-20020a17090a77cb00b00205edbfd646so9841490pjs.1; Fri, 30 Sep 2022 11:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=MZ1QKZutR7qmnF0tSQ5K80ENNLWUnpYLMPuYuggGHcE=; b=e6aaG6N3soaXnBwYTrdzTON7U2rYiQbin7cjDdXEEdWFLvk1VtTDumgMwjp4JwhlSy Gh5TIMk4leybzzCgEfEkBJESrhzv6lD5BNajq2FnW86JvgMCWoighd8Y/iufUEL6EP4j bAZ1mDhpUNw5TqlfMOpmNv9t46BBzq5yeLHbgsOH1fT1D1d78+Im7t9zFgBqmxxtKWqL sKtswFkCMsFzFhJb2BXFURTJsqj86heP6P+gcfPlhxsRhksTrbf4KpBNu6RcPVRURg5K FbFQy4v/5QuMHaX7Hfow79F47dW2zr9mYJkHi7R4/jVgMHG4EPAmFSx7GdjUp8/6dIcV 5ZdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=MZ1QKZutR7qmnF0tSQ5K80ENNLWUnpYLMPuYuggGHcE=; b=mRAr1RVQIW0hOfEOHCHuG9nb1a+FeHY/DDKd0SH76cIz/VizHz6fgiJBPjPWtYNUN6 gtBUSSVqXtPcxe4Rgi8L1Kukd0jlCQGcj0Ib/I4YdTlULc+f0dQWG2leEzmdEuxML8kV FvDALhZ1F0WHotNozR+74O+VSimnCZgTI9ekJr0bqLw4qnQ2vt7l7eJFkkara0s6dnSs jMtbYmpDvuN1SUfKDyq1iLQG+mCf7GVYWHcmw4d5xGpJW4UTquRArdchHBuGwquHGOGc ifVoTv7wPwycSlX9g910sOGn0ti5S/cWB1biJi5WZNVLpYrjylWX8IYuw+j7WCEp2ha9 4Tcw== X-Gm-Message-State: ACrzQf0oyTSmGZEWQWL6/quuhrx8r/oHDLXOzPZEqDtYrKZrOS5h92Qt 4bS8UsKxzLJ7Q8adSLQil/8= X-Received: by 2002:a17:90b:33c5:b0:202:fa60:3769 with SMTP id lk5-20020a17090b33c500b00202fa603769mr11001170pjb.60.1664561750075; Fri, 30 Sep 2022 11:15:50 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:d016:f5be:4ff2:43f]) by smtp.gmail.com with ESMTPSA id 64-20020a620543000000b0053e6d352ae4sm2106224pff.24.2022.09.30.11.15.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 11:15:49 -0700 (PDT) Date: Fri, 30 Sep 2022 11:15:46 -0700 From: Dmitry Torokhov To: Jiri Kosina Cc: Tero Kristo , linux-input@vger.kernel.org, benjamin.tissoires@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] HID: input: Add support for USI style events Message-ID: References: <20220812103519.2142290-1-tero.kristo@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Fri, Sep 30, 2022 at 11:09:12AM +0200, Jiri Kosina wrote: > On Thu, 25 Aug 2022, Jiri Kosina wrote: > > > > Add support for Universal Stylus Interface (USI) style events to the HID > > > input layers. The events are mapped as follows: > > > > > > type id event > > > ---- -- ----- > > > MSC(4) 6 Pen ID > > > MSC(4) 7 Pen Color > > > MSC(4) 8 Pen Line Style Ink > > > MSC(4) 9 Pen Line Style Pencil > > > MSC(4) 0xa Pen Line Style Highlighter > > > MSC(4) 0xb Pen Line Style Chisel Marker > > > MSC(4) 0xc Pen Line Style Brush > > > MSC(4) 0xd Pen No Preferred Line Style > > > ABS(3) 0x1c Pen Line Width > > > > > > All the listed MSC events are new, the ABS one is mapped to an existing > > > event. > > > > Dmitry, could you please Ack the MSC_PEN_* additions? > > Dmitry, friendly ping on this one. Very sorry, I meant to answer and forgot... We need good descriptions of what exactly these events are, and when and how userspace should expect/use them. In general, I am wary of MISC_* namespace as it needs to be sent in every packet as we do not retain state and do not give userspace way of querying it, unlike ABS_* or KEY_* or number of other events. Also, what do we do with multiple pens used at once? Maybe we do not have such devices now, but multitouch devices did not exist in the beginning either, and now are ubiquitous. Thanks. -- Dmitry