From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10889ECAAD6 for ; Thu, 25 Aug 2022 22:24:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244361AbiHYWYm (ORCPT ); Thu, 25 Aug 2022 18:24:42 -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-Google-Smtp-Source: AA6agR6WjBRO3E99Nr5Z3f47/LfoiCAkGHM3jAku2+F2ZbbXrXP9XARu3LaSB69I2ocfbi8M4Mxg1w== 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 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