Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5845742rwb; Wed, 7 Sep 2022 08:46:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR5XljSNaK90CUzExNO7jXNrfwbtCeguLpxCDhXocUGBhYutYrr31fi4x7qiVhdtYkRLkm2X X-Received: by 2002:a65:6491:0:b0:42a:c39a:e58e with SMTP id e17-20020a656491000000b0042ac39ae58emr3858328pgv.68.1662565594974; Wed, 07 Sep 2022 08:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662565594; cv=none; d=google.com; s=arc-20160816; b=rXmQTDUZGjbU6w+0C3WI9U85hyDy1Mbq5P0rNm17Pihd4ETo7iD1l4TUK6DPmCbGF3 BXlhdH1nDOKD8sJI3ZpChZ1UM2+WVm9USBeQnXZHjYzTMmhlSe+tX9VaujIM2grUzyJL x7nng9jEkWw0iP/KztdgnBqknIj/pUXTRq6Pg+mFgC0eKPiaTVqdyvMdGVL7zTzlHs9Q ex95lsIsYYF8deQ5oQ4MJCrkRSF0M5Pp5RgAWFbjGF6gdR6wIxh7UGt1Si3yj6B9iKuC nwTIzhbuG9rtmTP3RtSHt7//FI63RHc9Y+d9nussmPSPyktbWxrOY7OOrTs/6dYCSKsK GILw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=HLW01y+Zs51eYM9ekWpfCJvyije5mR5ti9qpAnbXmUU=; b=L+sYUBRsvmckx8UiQB0vUmFK7iP0hcNaPUYGDafB0VFBLp+MPawZZ6RJZQQL0jq+Uh 3p/+rJMYgpLnwqCNls5U17H98ZTQDqLDZn7sryIKceCxlcT9rUrZRMVLJoDchrdKBYXL Vtvck7umppbRzI5BPbxnmL6jD5bPvlw9Z8kmwf3XlMWXPy/7YMJ4F6HgkoFDDSX/FEMn HDy27rcDYHUqnXQlXmsTTsLo+mItaTRY6TsgToWPj6vaIZDgCuulO5hL8sLivSdGIaeO uiSJe5DwbJ8soNvAWhwz1W4aZDmI1nFc9YSnzp/AadhfyQxV1eLnHYPg+sTbyOdFroVT akNA== ARC-Authentication-Results: i=1; mx.google.com; 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 e16-20020aa798d0000000b005384ae9f7cesi15955052pfm.92.2022.09.07.08.46.22; Wed, 07 Sep 2022 08:46:34 -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; 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 S229635AbiIGPlN convert rfc822-to-8bit (ORCPT + 99 others); Wed, 7 Sep 2022 11:41:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbiIGPlM (ORCPT ); Wed, 7 Sep 2022 11:41:12 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E4139C21A; Wed, 7 Sep 2022 08:41:10 -0700 (PDT) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id 04C0D40004; Wed, 7 Sep 2022 15:41:08 +0000 (UTC) Message-ID: <661ee8227c96aeba7aae9fff6ac9a73f1d81e765.camel@hadess.net> Subject: Re: [PATCH v5 2/4] Input: joystick: xpad: Add ABS_PROFILE axis value to uapi From: Bastien Nocera To: Nate Yocom , dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, benjamin.tissoires@redhat.com Date: Wed, 07 Sep 2022 17:41:08 +0200 In-Reply-To: References: <20220825222420.6833-1-nate@yocom.org> <20220825222420.6833-3-nate@yocom.org> <3e48ef8d13337ce1c3ec68baffc612fde4740b0e.camel@hadess.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 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? Then Nate can update his patch so we can land the support for that controller. Thanks!