Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp171038rwn; Wed, 7 Sep 2022 22:48:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR5S4vQKnvsni8ONJO3Ds/y7DGa5HNbetAfg+R71pDk+Uj1JysXJK4zmmKPOWDqaJaovQoxO X-Received: by 2002:a17:906:c150:b0:751:288b:671d with SMTP id dp16-20020a170906c15000b00751288b671dmr4827751ejc.549.1662616087637; Wed, 07 Sep 2022 22:48:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662616087; cv=none; d=google.com; s=arc-20160816; b=ivP21r5X+MpSlRzm/bZJ9gqqbeQMlKfpMDWt/7OcYlzIDC10h26L/fawxekLYnohWw VctAHC+QwrhDAlN8JE1+CZlE5bH63u/wC6H7CyZeY+V7o4Eb84YXNArktHqb8qtG/+AO LrqS2W99AczUZ3T9ef/ILIPetC+V8/bTBHvPuxeaP6gNEysCav37vdnxHSWGOeZIWSEf aNZFvrrwkYEyfqjyzRWaPlj5z+qlMu2xBu2xksfRg0MdSv22ut+WTugM2rNIZ2CQhUO+ xos1kffg+VxwyrC5LdruNo/inA3VuSDIMw0ythTgKe6pW13rYhETQTEZk2NQA2nY/QJk CvHQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XSaEEp3bnQCQ+NAfy3AWeCLVxgW8xttjR0bTKrhnYDM=; b=Ln/+X7RtIB3+9u7I1PhnUOZh0I599d33JIJfTO70XyueQ/aDwuCKQFDM+pobIP8DUe 5gbm3LFbvOo1S/qnqfobAlbCburLfZk82Zz4a+TVFw7h873CbS0lDpHdV5Vitfcuxm/q +ZpjCjCNjqb8z1MewNFRv3iMKuorxz/xdBobEjXH9Bgz86kZNX8EdqTlX4Nd1JqypAYn psIEkxEODkDS4/NJM+GSYBX1INN+cK1Dg2gT2lNzClPNc7PAFP7jAsjHV1CjczbUO5Iy 3nOiy2c7qkawIZGyj+RCZC976yrkd2tXJ6kmhbaB+niPjA3MN7hRpZMqq9Ce3P81bSu2 paXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="CzD/sQkc"; 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 p24-20020a056402501800b0044e78dbb615si9046838eda.379.2022.09.07.22.47.43; Wed, 07 Sep 2022 22:48:07 -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="CzD/sQkc"; 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 S230109AbiIHFgl (ORCPT + 99 others); Thu, 8 Sep 2022 01:36:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230057AbiIHFgk (ORCPT ); Thu, 8 Sep 2022 01:36:40 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62394543DD; Wed, 7 Sep 2022 22:36:39 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id v4so15642260pgi.10; Wed, 07 Sep 2022 22:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date; bh=XSaEEp3bnQCQ+NAfy3AWeCLVxgW8xttjR0bTKrhnYDM=; b=CzD/sQkcxG5xYCXNPHtmRcqHe2zScH6KQGjpNa2bVwiPwKyW1cKv4l0FUIweaobM/E FvKHO9lWX51ZJoceB/T50BXpsu/I+EbON6dUVmQgavalnbjU1H9FnYqb4YXYoP4wUXyH Xsx0QPwLn5Nw37Xt+pfqA0BlAkN2hQff0jsyLvepP24pWJVNtEeF3Kj/khJsGbiBcW+e 265r3+FaqWsDE6JKpcMhXHb/miH9iZYGxiwGLbNu6uPHvp833/qozMhkr2jA9E9mz/j5 vX7oS8vR846KySY0Pjx74fY+N92+CL/E7K0RrcgJE92jmZCoelXn7aUNQifLfnqg3qx/ p2jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date; bh=XSaEEp3bnQCQ+NAfy3AWeCLVxgW8xttjR0bTKrhnYDM=; b=EfxBFSWodAXHVHFKM1VWeBus2xW+4VsShSenbqxhRDZn5lxk/aosEtliCClXLe71JG sBP3YoiZ9nSWsS+UZaOdLHJ3fXe/Qo/p+GREXjPO/obuOfuuvUf3h8i/ChvzUwTqgihb 1d1QrvsgV8dAtCmONBmwEuAdqferzimz56wldr3Vs2bHXwMc1I1zXNFNwH3cLzPXPYcc a+CFeJWpygp0dlHulmcjD5tvxpgu6ZNYUl140Kkj9UEYlhttV3It0miG2IOgRKq67fJe 3P/pRLdkVs703m5qSOA/9ar7bO5eMIrDxrkkg3FVMGor9y3x6ViAkQ93AdS+PHQdZBis /zGQ== X-Gm-Message-State: ACgBeo1TA/OSHo8qhVpBzxhw5qQHbsVaond6MvjiH5vcATnJOCMvLA0E inlBuQtiQXQ5kDrMMi0yooA= X-Received: by 2002:a05:6a00:21c8:b0:52e:3404:eba5 with SMTP id t8-20020a056a0021c800b0052e3404eba5mr7472850pfj.67.1662615398688; Wed, 07 Sep 2022 22:36:38 -0700 (PDT) Received: from google.com ([2620:15c:202:201:7af1:2c0d:fbfa:b9d7]) by smtp.gmail.com with ESMTPSA id n6-20020a170902e54600b00173cfaed233sm1290356plf.62.2022.09.07.22.36.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 22:36:37 -0700 (PDT) Date: Wed, 7 Sep 2022 22:36:35 -0700 From: Dmitry Torokhov To: Bastien Nocera Cc: Nate Yocom , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, benjamin.tissoires@redhat.com 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <661ee8227c96aeba7aae9fff6ac9a73f1d81e765.camel@hadess.net> 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,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 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? 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