Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1352030rwn; Thu, 8 Sep 2022 18:29:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR4MEmg/lg+Z0oAgsTirst8EbR3rNWSbcvGI6l22vr/I6+kZ0gnsS0lbJmghuMocFlG+ck2e X-Received: by 2002:a05:6512:2255:b0:492:f5b8:ef2d with SMTP id i21-20020a056512225500b00492f5b8ef2dmr3369116lfu.128.1662686956456; Thu, 08 Sep 2022 18:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662686956; cv=none; d=google.com; s=arc-20160816; b=Chm6Uz49J/ewaqajx4Y0TGb9yrAXErZgeHhZv3gHmt2zKQcLCmxoAMJSSePN0rRXK7 SZqCsxg3APWE2uzQqMj8HdCgDzmQdOu4bHqvx3HGTwqRLYsAfW38Dsa5RhmfbSMuleS3 NjGFvKxMfDk88B4j3+JeNkUU30fbviLF9f73Zc8ETOFiv4MvPsdNEe7DzOJynEeMgNEQ A9Mh4uG+GyMjR4/i3aiULDle/At6/6fnAuxgqo2egch0YREawM+ViNQUWKu0BTl/gcwg wFPgNPdEmQmGrJAlHz9P2g7q0+Yt5jM/Jbs5Kthrza2e+7ttdSYkOJt3pClr2fKnquQX 43QA== 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:feedback-id :dkim-signature:dkim-signature; bh=LIj6b6sZa48PCHZciLTQDkkYz7hIF6a4cRxP68uo4GM=; b=vvyYwAk7UixqGiWVr6J7jiN+qp8Ptz0feYGk5NIL3Uk+KjZDn8GmFOdhodxMXTggTd cUv+GO0TNeZyITu6flQCPKY8cGT/yuqwTzNtg5rrLb8VJiWIBKPyDjI4bM5mx62zbF/I dXCQalLs8k43+ypwB0Q8szM80dCJYCFK290BeDnRyHp9o10lA1YiKXifQSKbgePowDPB vLONssvaN8zyPIj4XBloCHhfgu1NTa1W5iaUH+l87i3BS6jk8M0GiiiE8b0QYYDh1kc2 PfiD98LZH8uq30IbeHIagcqTtBS+5n6LImUNVHl5zUiSrAaxrjgsTJCmTF/7c85oHrpw N/Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@who-t.net header.s=fm1 header.b=Bov7VnH9; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Meydom+O; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n22-20020a0565120ad600b0047daab8a686si187553lfu.486.2022.09.08.18.28.47; Thu, 08 Sep 2022 18:29:16 -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=@who-t.net header.s=fm1 header.b=Bov7VnH9; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Meydom+O; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229911AbiIIBZn (ORCPT + 99 others); Thu, 8 Sep 2022 21:25:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbiIIBZl (ORCPT ); Thu, 8 Sep 2022 21:25:41 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77ED296752; Thu, 8 Sep 2022 18:25:39 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 861BF5C009B; Thu, 8 Sep 2022 21:25:37 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 08 Sep 2022 21:25:37 -0400 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=fm1; t=1662686737; x=1662773137; bh=LIj6b6sZa4 8PCHZciLTQDkkYz7hIF6a4cRxP68uo4GM=; b=Bov7VnH9NjJq3Zd8PzfnirBNL3 xdCy2YxL/fRCA1BYGzxxzCU2stJRBbsxVcBaoIe8fH4xPqx47LKKlbE4LpNPOygi BjFU6TQRc2lPOBsZ7UCKsic8RDUTQKhYWsD+rWut4QWNY6hZB8dDN1opsOc6wo96 ou1d1RV+vzUhvjesNiFhhj/qRT+JsEv6vwczcZJF4fI7bNldXLp9GKoRr02aVodL NzOVHfn/3SQjf4PcgJymcqt3TWjuKUl5GUusnj/91zXITyv72kGUS2vs7LBmAwjk TcmW+b6myH4IDGpNe/lv4Riu65t7e4ieEuCM2PPouEfY9zgZ4RHRPmaOHo3w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id: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; t=1662686737; x=1662773137; bh=LIj6b6sZa48PCHZciLTQDkkYz7hI F6a4cRxP68uo4GM=; b=Meydom+OXcPCP+g32zRbgh/ZtFmVaLRcNPOLdZkS4U5L gAel1f6KMbwEbnO719jRqAf4uMnC4sRtYqfS03QjFV/zjKhHrjKtMQhyNhtlHHuV eRjyJpPt5E/yqWcxGbnWxwBB6bP7b9TkwQcLvFkZVHPeSWmDgqiGCytKqetr7Nkp wXky6SMl+MsEjv3p0jq1LtkBDilbtZ6AUMKQWkgHUDzqoJf3Z3ZKT5T8dUKJSZSH gmpgX0PKG97U0veXeTVSwPLnoTiTKLNgsWgR474jby3eFqxqCYZJrKBq8IL45x6D Sq5XFTLs5WdLJJ+oYD/Lpm0RcwcPiolv2eIKkrCRSw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedtgedggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheprfgvthgv rhcujfhuthhtvghrvghruceophgvthgvrhdrhhhuthhtvghrvghrseifhhhoqdhtrdhnvg htqeenucggtffrrghtthgvrhhnpeekvdekgeehfeejgfdvudffhfevheejffevgfeigfek hfduieefudfgtedugfetgfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehpvghtvghrrdhhuhhtthgvrhgvrhesfihhohdqthdrnhgvth X-ME-Proxy: Feedback-ID: i7ce144cd:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 8 Sep 2022 21:25:35 -0400 (EDT) Date: Fri, 9 Sep 2022 11:25:30 +1000 From: Peter Hutterer To: Benjamin Tissoires Cc: Dmitry Torokhov , Bastien Nocera , Nate Yocom , "open list:HID CORE LAYER" , lkml Subject: Re: [PATCH v5 2/4] Input: joystick: xpad: Add ABS_PROFILE axis value to uapi Message-ID: References: <20220825222420.6833-1-nate@yocom.org> <20220825222420.6833-3-nate@yocom.org> <3e48ef8d13337ce1c3ec68baffc612fde4740b0e.camel@hadess.net> <661ee8227c96aeba7aae9fff6ac9a73f1d81e765.camel@hadess.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Thu, Sep 08, 2022 at 08:51:57AM +0200, Benjamin Tissoires wrote: > On Thu, Sep 8, 2022 at 7:36 AM Dmitry Torokhov > wrote: > > > > On Wed, Sep 07, 2022 at 05:41:08PM +0200, Bastien Nocera wrote: > > > On Mon, 2022-08-29 at 12:07 -0700, Nate Yocom wrote: > > > > On Sat, Aug 27, 2022 at 12:40:46PM +0200, Bastien Nocera wrote: > > > > > On Thu, 2022-08-25 at 15:24 -0700, Nate Yocom wrote: > > > > > > Add an ABS_PROFILE axis for input devices which need it, e.g. X- > > > > > > Box > > > > > > Adaptive Controller and X-Box Elite 2. > > > > > > --- > > > > > > include/uapi/linux/input-event-codes.h | 1 + > > > > > > 1 file changed, 1 insertion(+) > > > > > > > > > > > > diff --git a/include/uapi/linux/input-event-codes.h > > > > > > b/include/uapi/linux/input-event-codes.h > > > > > > index dff8e7f17074..7ad931a32970 100644 > > > > > > --- a/include/uapi/linux/input-event-codes.h > > > > > > +++ b/include/uapi/linux/input-event-codes.h > > > > > > @@ -862,6 +862,7 @@ > > > > > > #define ABS_TOOL_WIDTH 0x1c > > > > > > > > > > > > #define ABS_VOLUME 0x20 > > > > > > +#define ABS_PROFILE 0x21 > > > > > > > > > > > > #define ABS_MISC 0x28 > > > > > > > > > > > > > > > > > > > > > You probably also want to add it to the absolutes array in > > > > > drivers/hid/hid-debug.c. > > > > > > > > doh, roger. > > > > > > > > > Again, you might want to wait for confirmation from Dmitry that > > > > > this is > > > > > the right way to do this for the profiles. > > > > > > > > Makes sense. Dmitry? > > > > > > Dmitry, could you please confirm whether ABS_PROFILE definition is > > > correct? > > > > Yes, I think this makes sense. Do we have a buy in from userspace folks > > (Peter H, etc) for this? > > AFAICT, libinput wouldn't use that new axis, simply because it doesn't > care about game controllers. yep, that's pretty much the summary from my side so ACK from me. Cheers, Peter > So it all comes down to game users to validate this (and probably only > android is now the main consumer of these given that SDL and Steam are > directly using hidraw or libusb to talk to controllers). > > Cheers, > Benjamin > > > > > I'd like some documentation added to Documentation/input/event-codes.rst > > and potentially to Documentation/input/gamepad.rst even though profile > > does not have to be gamepad specific event. > > > > Thanks. > > > > -- > > Dmitry > > >