Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1121646rwe; Thu, 25 Aug 2022 16:13:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ZQbLpR0HjQLMseWbWC8U7Luu1DU0A6IkKM+2/LpJ65mz6x9KV5L1jG+Mv1JbRfCWSRVS7 X-Received: by 2002:aa7:df82:0:b0:447:89da:483a with SMTP id b2-20020aa7df82000000b0044789da483amr4836708edy.418.1661469214403; Thu, 25 Aug 2022 16:13:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661469214; cv=none; d=google.com; s=arc-20160816; b=AChGbXoTdBpxoUUTuAEx1xQkkm/9ouWHzE7tRlsu+q/TMwflAoGd7dihBhcFkaTFz2 pl9QA4f+38HgWVZv1VrE8WX28Q3gef1DDxfxfh+jbaCk6Dllq2GOrlFOxoaK9mWV1auu XBwVSbTjMo0b2CHr9RZM6CunjFj0Bc8NlMLhQeZJmt1+Muf7mtIS5FOubTFu6qCJolAO 6bLg91TUN/0YR8RZ1325QPPQrAyKyVqQV21sovhm2MxaWGpeKko7t2atccsDAwDLTEsU R1U4cywGQgABhVur9fg1KTf0Tq0Ed6EdHwTU1RrnsCRxQlO1jo++HNzaHAV6zQ/g60nN 40pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/Bw09k1AMbuT0tfY/4oUQack0cVk+BSGCjvp9aK78hw=; b=h03eqdRCARJOZ0JeXjIn3mH7Y1Hzrn38BeSGGuFIFUIZhyDioBX4HyGx5vEY8I/QHi JpsHYAsleHtCSGBRfhKiR77ZGjzqRxeP7CY5zIrsnlXK7rBKi3EZfndfrry61PLiV4lw tYOd5qDzJ4yihfk6x/zjsSqYbzvXtDE4LyWIsMZ3rGZrvj6+DlB+XaMaqhM/qfwd49lN sHmITYVBs2Bxns5AkaaNn97+RRQn/F5s5WzMnpt4bisUdRZZHMwBPPBx8K7zUIJbEUDm oIXHnInRkVjZFOjY49s4QkmG3n/zxuZWLlczRqddTnz8dbeDQLqIdvSnFfSJxcbWcqN/ jUfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yocom-org.20210112.gappssmtp.com header.s=20210112 header.b=NqlnVCaf; 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 sb41-20020a1709076da900b00730d0b86b28si258487ejc.761.2022.08.25.16.13.02; Thu, 25 Aug 2022 16:13: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; dkim=pass header.i=@yocom-org.20210112.gappssmtp.com header.s=20210112 header.b=NqlnVCaf; 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 S244358AbiHYWYl (ORCPT + 99 others); Thu, 25 Aug 2022 18:24:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231648AbiHYWYi (ORCPT ); Thu, 25 Aug 2022 18:24:38 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 160E8C5786 for ; Thu, 25 Aug 2022 15:24:37 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id w2so70839pld.0 for ; Thu, 25 Aug 2022 15:24:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yocom-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=/Bw09k1AMbuT0tfY/4oUQack0cVk+BSGCjvp9aK78hw=; b=NqlnVCafAjYXanDOwGwRqsOnSyiP5OaDrR4HrZjmkPe1pfbcL30gQXPfzKUbstWY3d n7h5lcoOMEPP5Sv17nu3QrPmjd8hKJt+nBKYodBS7u7bNZ0P7eh5FUmJefG5021lju3l a3yo5HaErJ9eX5kdHGLsoerouYNzBa6eyVqJmQgB3LgF7a2QqpNFzD0Wuft/XrtMtdK4 moOhNMzGzZVjfOmIUSW5PuGb/K/5jvSJunckJ9zZKutMyoq3HHQs6oGzzWG2hfPlhUiZ J6rYCDX2jFA6HJ+Buo+arnZWy8cXUfY8DpYbZprGAEBdNGYPzDX93CZb4dvqKmjnz3pl 5qeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=/Bw09k1AMbuT0tfY/4oUQack0cVk+BSGCjvp9aK78hw=; b=G/dZXhGi8BVNMc3acmdZSu8XHizBsPtwVcycK3+el4ROWyqQUThKOG8C2xQa7SZiNH vvMx7IJVB+YmHi8amQ64TiHXQCphM4JEhQqJMGHylgnQtZj9YKNebkLwRfPjZJ68wCag NkBVVERyQsnExtpGF/8YHRCh5ndW/zaq3+9MQvfSM9zjlch3izHb9GWmlJT3fIh+BbXX GmIOs6ZE/cqwuw3QWV5+zMDszR7JRj+CX3tfjfLp6UdyyTNLRoReLZIV18mMXIsCJFio YUafeGH7QmhMbqQmaPzbvUP1g7GiAnXe8t67fElW3L0nq7jh643uN/8ACzp5kgg8nGkJ 46EA== X-Gm-Message-State: ACgBeo2O0qvadzxPF4poCgcYK1iQjqY9gb7p0wExP7twji83BzcYmCmH y1r0IilYs34kalIfFuRW7skwZQ== X-Received: by 2002:a17:90b:4acc:b0:1f5:7f05:12e8 with SMTP id mh12-20020a17090b4acc00b001f57f0512e8mr1195142pjb.92.1661466276475; Thu, 25 Aug 2022 15:24:36 -0700 (PDT) Received: from localhost.localdomain ([2601:600:8f80:973::5f]) by smtp.gmail.com with ESMTPSA id e23-20020a63db17000000b00429b6e6c539sm81820pgg.61.2022.08.25.15.24.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 15:24:36 -0700 (PDT) From: Nate Yocom To: 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: [PATCH v5 0/4] Input: joystick: xpad: Add X-Box Adaptive Controller support Date: Thu, 25 Aug 2022 15:24:16 -0700 Message-Id: <20220825222420.6833-1-nate@yocom.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Adds support for the X-Box Adaptive Controller, which is protocol compatible with the XTYPE_XBOXONE support in the driver with two deltas: - The X-Box button sets 0x02 as its activation ID, where others set 0x01 - The controller has an additional Profile button with 4 active states, which this change maps to an Axis control with 4 possible values Patch series adds device to the supported table, adds support for the Profile button, and adds support for the X-Box button as distinct changes. Signed-off-by: Nate Yocom Nate Yocom (4): Input: joystick: xpad: Add X-Box Adaptive Controller support Input: joystick: xpad: Add ABS_PROFILE axis value to uapi Input: joystick: xpad: Add X-Box Adaptive Controller Profile button Input: joystick: xpad: Add X-Box Adaptive Controller XBox button v2: Fix warning Reported-by: kernel test robot v3: Break into multi-part and remove VID/PID check for XBox button v4: Rename Layer -> Profile as suggested by Bastien Nocera v5: Add new ABS_PROFILE axis to uapi and use it for the profile button drivers/input/joystick/xpad.c | 15 ++++++++++++++- include/uapi/linux/input-event-codes.h | 1 + 2 files changed, 15 insertions(+), 1 deletion(-) base-commit: 15205c2829ca2cbb5ece5ceaafe1171a8470e62b -- 2.30.2