From patchwork Tue Dec 27 19:46:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Walt Holman X-Patchwork-Id: 637725 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 88686C4167B for ; Tue, 27 Dec 2022 19:55:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231167AbiL0TzB (ORCPT ); Tue, 27 Dec 2022 14:55:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229566AbiL0Tyw (ORCPT ); Tue, 27 Dec 2022 14:54:52 -0500 X-Greylist: delayed 493 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 27 Dec 2022 11:54:51 PST Received: from mail.holmansrus.com (unknown [143.59.183.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E5A3101E; Tue, 27 Dec 2022 11:54:51 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.holmansrus.com (Postfix) with ESMTP id 2820BE1D46; Tue, 27 Dec 2022 13:46:37 -0600 (CST) Received: from mail.holmansrus.com ([127.0.0.1]) by localhost (mail.holmansrus.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id VlecP-Fp4TuH; Tue, 27 Dec 2022 13:46:34 -0600 (CST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.holmansrus.com (Postfix) with ESMTP id B1591E1D4A; Tue, 27 Dec 2022 13:46:34 -0600 (CST) X-Virus-Scanned: amavisd-new at holmansrus.com Received: from mail.holmansrus.com ([127.0.0.1]) by localhost (mail.holmansrus.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 8GvPUnVo9Se7; Tue, 27 Dec 2022 13:46:34 -0600 (CST) Received: from mail.holmansrus.com (mail.holmansrus.com [10.90.0.246]) by mail.holmansrus.com (Postfix) with ESMTP id 7559CE1778; Tue, 27 Dec 2022 13:46:34 -0600 (CST) Date: Tue, 27 Dec 2022 13:46:34 -0600 (CST) From: Walt Holman To: linux-kernel , linux-input@vger.kernel.org Message-ID: <743753078.40.1672170394290.JavaMail.zimbra@holmansrus.com> Subject: PATCH: Add devce IDs for Logitech G923 Xbox Steering Wheel MIME-Version: 1.0 X-Originating-IP: [10.90.0.246] X-Mailer: Zimbra 8.8.15_GA_4484 (ZimbraWebClient - GC108 (Linux)/8.8.15_GA_4481) Thread-Index: OOK75kChqCuOz9n0sHuUxbaMgbTqAQ== Thread-Topic: PATCH: Add devce IDs for Logitech G923 Xbox Steering Wheel Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Hello, This patch adds support for the Logitech G923 Xbox edition steering wheel. This uses the hid-logitech-hidpp kernel module and from my testing, force feedback and all buttons work. This requires the usb_modeswitch application to setup the device in PC mode with a magic string that is the same as the Logitech 920 wheel. Originally I had massaged a patch I found for this wheel, however, much of it was unnecessary and I culled it back to just adding the ID's. Let me know if you need anything else or have any questions. Thanks, Signed-off-by: Walt Holman walt@holmansrus.com diff -u2 -r linux-source/drivers/hid/hid-ids.h linux-target/drivers/hid/hid-ids.h --- linux-source/drivers/hid/hid-ids.h 2022-12-21 10:48:12.000000000 -0600 +++ linux-target/drivers/hid/hid-ids.h 2022-12-22 12:50:16.403880137 -0600 @@ -820,4 +820,5 @@ #define USB_DEVICE_ID_LOGITECH_G29_WHEEL 0xc24f #define USB_DEVICE_ID_LOGITECH_G920_WHEEL 0xc262 +#define USB_DEVICE_ID_LOGITECH_G923_XBOX_WHEEL 0xc26e #define USB_DEVICE_ID_LOGITECH_WINGMAN_F3D 0xc283 #define USB_DEVICE_ID_LOGITECH_FORCE3D_PRO 0xc286 diff -u2 -r linux-source/drivers/hid/hid-logitech-hidpp.c linux-target/drivers/hid/hid-logitech-hidpp.c --- linux-source/drivers/hid/hid-logitech-hidpp.c 2022-12-21 10:48:12.000000000 -0600 +++ linux-target/drivers/hid/hid-logitech-hidpp.c 2022-12-22 12:53:36.335755199 -0600 @@ -4341,4 +4341,7 @@ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G920_WHEEL), .driver_data = HIDPP_QUIRK_CLASS_G920 | HIDPP_QUIRK_FORCE_OUTPUT_REPORTS}, + { /* Logitech G923 Wheel (Xbox version) over USB */ + HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G923_XBOX_WHEEL), + .driver_data = HIDPP_QUIRK_CLASS_G920 | HIDPP_QUIRK_FORCE_OUTPUT_REPORTS }, { /* Logitech G Pro Gaming Mouse over USB */ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC088) },