From patchwork Sat Aug 13 18:53:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nate Yocom X-Patchwork-Id: 12942799 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 C163BC19F2D for ; Sat, 13 Aug 2022 18:53:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239177AbiHMSx5 (ORCPT ); Sat, 13 Aug 2022 14:53:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229957AbiHMSx4 (ORCPT ); Sat, 13 Aug 2022 14:53:56 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 165F213F08 for ; Sat, 13 Aug 2022 11:53:55 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id r22so3386244pgm.5 for ; Sat, 13 Aug 2022 11:53:55 -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=ogTKxn7gTffibaoNZi5K6LKCMlrCzImpFtSY9mf4kPA=; b=h9DNdvK3pGgonlcqCpcn9R+2+Tqofh3UlKp4j5hsLumvXUTrqZoHh4JDj7jv0ou+nq qMRfz6UD2otLo4GvBSPNsNaiRltSDAKXdVvyglIf3sexzv1ROyZFC98iNnjEpPlk30mw jItnzVqwEFUgO5uqPMQrVXA+BPIt8yVFg4xN9jEhP/p1leNetIZkM6X3qkXQ3TjqzkYb nzxK1jOBRi/BohWUwS51AoyBbgtDPnFs++p4Oja2CggYLBkTHzv/BS+NxCRL7RcVCIlp U9GKAiXHxHf7NYW9bGsthmfsfpvEyS/NJx2kTjRBgZvLoqTvgAka4Dw5v1kEwWHBh+Hq VdOw== 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=ogTKxn7gTffibaoNZi5K6LKCMlrCzImpFtSY9mf4kPA=; b=fu3lNP0Qs3SriKNWIk/4oqZSNKHejRwt7fBcwJQiV+8wEXnsDjhUN8d5jOwg5L7YbK HIXv/HlmhmVekPXjQ8qqrc4RYI1y32iyGyah2dNO63nu+7cl88lIFGOZtUTOSPEvbnfb slWrLiTPiaMgQYTzI196MadyyPn1roxTvUIy58yjkUZB+nMFX3MHkgKUHveGUdR3daz1 x9ImF8RA/4fc1Mb7CtWb0w8YHdfVTnBtxdBfbQowclKaWcjohO1t6V0tKV+6T8rDl6xE Zcua7A34RGWtWYjEKxhtyqBp6jlQ6qBniOoVmLC9AFK+1LNijZm3hJvat/bDdY6RBaTM 7xJA== X-Gm-Message-State: ACgBeo1r2uN732Qa7U+Wsmx0gH6jWTJtoHomXNl06p34QO2PaH1twF7X ZWp6EIIs23V2XUQEiHqZ5HAjopjtJW13lg== X-Google-Smtp-Source: AA6agR4iT8oUqaaXbfwj70Kf4V2bMH7FXexRAIe7Bf1T6eIQU+EhAts5F20rrZoKor5+UFSTMZeMfA== X-Received: by 2002:a63:450:0:b0:41e:1bbc:37b6 with SMTP id 77-20020a630450000000b0041e1bbc37b6mr7626541pge.327.1660416834547; Sat, 13 Aug 2022 11:53:54 -0700 (PDT) Received: from localhost.localdomain ([2601:600:a07f:e6ac::1c]) by smtp.gmail.com with ESMTPSA id fs1-20020a17090af28100b001f246f2a423sm1972183pjb.17.2022.08.13.11.53.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Aug 2022 11:53:54 -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 Subject: [PATCH v3 0/3] Input: joystick: xpad: Add X-Box Adaptive Controller support Date: Sat, 13 Aug 2022 11:53:40 -0700 Message-Id: <20220813185343.2306-1-nate@yocom.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@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 "Layer" 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 Layer button, and adds support for the X-Box button as distinct changes. Signed-off-by: Nate Yocom Nate Yocom (3): Input: joystick: xpad: Add X-Box Adaptive Controller support Input: joystick: xpad: Add X-Box Adaptive Controller Layer 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 drivers/input/joystick/xpad.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) base-commit: 15205c2829ca2cbb5ece5ceaafe1171a8470e62b