Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp159272rwb; Wed, 28 Sep 2022 00:27:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7D8gng1FKCGlh3pKe4LGOIAJW0/9Fjp44IkqCcIlRBg33JHynp5sI0FVeCDbILtZEWwA0E X-Received: by 2002:a17:907:7f05:b0:781:e579:46b5 with SMTP id qf5-20020a1709077f0500b00781e57946b5mr26071524ejc.102.1664350061266; Wed, 28 Sep 2022 00:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664350061; cv=none; d=google.com; s=arc-20160816; b=JP8ymArEMbJH0S6m2Gr7WZkwrk5PdE32uwZGRPtcol683xewbAukPJ90kg2CZ7Wfjt 8jPTiKSwNzbybgDXyfRzcTeIPCQqHl+f4RON2itSz6zNRhTaefRCip2OHvy8ufih7V/J S8Zs8hS0j/KY8vC2VQIfKKptyx5Qp4NcTSr9DdMuEvEIOp0sN5KzBq0Ii4HetOEBmTjS QHHa/6O2xe72WMo8LvYOzfgOyJNRtYl1lqQAsw6nwovEDbZBnSFz/Eow8856Bj0XdbCL Joql8AgSm1ojgPHfPeofzMtW84yLcZFpzd+IrologsE7+W/Up5UCpnozn+FuJMZ2Ici0 xtYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=PAmk9QFq07aPCNFFQg2mJtu07esLl0IfU/Mk+SA3fPE=; b=wdDFpFNvLMvWqTgAapm7ltBEBGJeS1ibz8VYUM4ippepSsDYAQZBEKs5/sQp7X0MgA tMDx1B/traWB4BtxMLsT2tM8Qshn5lKadkbRqm9lGOmziVO3GzDrUkb0nULGcNMkTHZX H8waigZeukLCfhGHZ0lJJ3cWTR8QQdWLZLiRl225FtJk295CiK9lI7iwC5wRoBl1oWyk xIf8PM+U4tWKmVlsXGrDcCHZxSGa3sdropZ01BJ3fsMpccj1f8FtOIT6AYoW1+szYyKq rWhWpLMs7638d4I1qijSetJFrY7bZ2IXR28n+Kk73ONrCYxaYueIdSKhny64XpZH5nps 4BzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=2TIznrsy; 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 z3-20020a05640240c300b0044615ee1b6fsi5078693edb.218.2022.09.28.00.27.14; Wed, 28 Sep 2022 00:27:41 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=2TIznrsy; 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 S233456AbiI1HVy (ORCPT + 99 others); Wed, 28 Sep 2022 03:21:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233240AbiI1HVt (ORCPT ); Wed, 28 Sep 2022 03:21:49 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C13F2D2D76 for ; Wed, 28 Sep 2022 00:21:47 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id u16-20020a05600c211000b003b5152ebf09so582415wml.5 for ; Wed, 28 Sep 2022 00:21:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=PAmk9QFq07aPCNFFQg2mJtu07esLl0IfU/Mk+SA3fPE=; b=2TIznrsycJ8yFQDLSoWk/zHZDHnuP7DxOBoyKCgp4K5HjGoVb0V8/ewcz9f0ReJPpa VUC6pJjcNm/8JVfOYxZEzKZo/6B7CsJXa1la7dR7hIBE8NToD3mdZlPPzivQn+n5g8Xx KRt9BCr68ylQGoLhwl3I1lV2v8DS3eRpGE/wjwW+hHn0AFqIc0JHwMNRALwQEIE+xLCZ MQK1CefJQ2UvG+Q/a29tdcjY0yxsCgAsI7YvPnXB0nnTi5hAHrKicbDEWnmIO7LnDrFq q8XkcL1xkhHzs1KnY9Qxo0l4MJ772x6yCysIYa1GvL8sIg0gfksQlu9/EQSPg1P7i6ox 6EvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=PAmk9QFq07aPCNFFQg2mJtu07esLl0IfU/Mk+SA3fPE=; b=lmcjuEvmQlYpmb9+IwVjE0LeRzPHf7igxwAb3vr1WCbe4HJIXOoFCaD1g+6gqldZ00 GARyC58l4aMW0iirtghC+r4F1EC6odhC51Es/yzlB9VBBewydyMBKvdL3VJ4x49uUbrM wCttb9G22BCJoSpOH1ieevrcYEqQXw4qHwQBuLw3x6yLzRvNulU0a1rMX7ZYcSIqmpBv ZFcEog4+on4xDYiNRt6VTneoAKBYhd5T5LteV982rCOKt2TZbsZtpZTmFf1WfqH/FjxW Z3fFS67I25+zn+1wIvT2AHtXtVDvu3st93w4qGA7HVTEPFUojCnstRc6/cAf8UUqDDVX vESg== X-Gm-Message-State: ACrzQf0EBKVlbu+daclw5/V5AFwRc4xMOegPAXkY6v7aL6o5GkTrFCdR gb+4xTH8ss8HPzGTxYemi7KBsg== X-Received: by 2002:a1c:c90c:0:b0:3b4:adc7:9766 with SMTP id f12-20020a1cc90c000000b003b4adc79766mr5726830wmb.66.1664349706271; Wed, 28 Sep 2022 00:21:46 -0700 (PDT) Received: from localhost ([2a01:cb19:85e6:1900:5f1e:d910:dd1e:5b09]) by smtp.gmail.com with ESMTPSA id fc10-20020a05600c524a00b003b435c41103sm1294696wmb.0.2022.09.28.00.21.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 00:21:45 -0700 (PDT) From: Mattijs Korpershoek To: Nate Yocom , dmitry.torokhov@gmail.com Cc: nate@yocom.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, hadess@hadess.net, benjamin.tissoires@redhat.com Subject: Re: [PATCH v6 2/5] Input: joystick: xpad: Add X-Box Adaptive XBox button In-Reply-To: <20220908173930.28940-3-nate@yocom.org> References: <20220908173930.28940-1-nate@yocom.org> <20220908173930.28940-3-nate@yocom.org> Date: Wed, 28 Sep 2022 09:21:44 +0200 Message-ID: <87sfkcezg7.fsf@mkorpershoek-xps-13-9370.home> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 Hi Nate, On Thu, Sep 08, 2022 at 10:39, Nate Yocom wrote: > Adaptive controller sets 0x02 bit for this button, all others set 0x01 > so presence of either is used for BTN_MODE. > > Signed-off-by: Nate Yocom > Tested-by: Bastien Nocera This does not applies properly anymore on dtor/next [1] because of 90c9978959da ("Input: xpad - refactor using BIT() macro") and e23c69e33248 ("Input: xpad - add support for XBOX One Elite paddles") With that, please add: Reviewed-by: Mattijs Korpershoek --- > drivers/input/joystick/xpad.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c > index c8b38bb73d34..dff0d099d416 100644 > --- a/drivers/input/joystick/xpad.c > +++ b/drivers/input/joystick/xpad.c > @@ -858,7 +858,7 @@ static void xpadone_process_packet(struct usb_xpad *xpad, u16 cmd, unsigned char > if (data[1] == 0x30) > xpadone_ack_mode_report(xpad, data[2]); > > - input_report_key(dev, BTN_MODE, data[4] & 0x01); > + input_report_key(dev, BTN_MODE, data[4] & 0x03); > input_sync(dev); > return; > } > -- > 2.30.2