From patchwork Mon Jul 24 16:30:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hamza Mahfooz X-Patchwork-Id: 125109 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1941341vqg; Mon, 24 Jul 2023 10:21:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlFmv19OCt7r5zC8r43w/22eh4DzFQ5uu78PfRJ9VvFXVCyf6pgttReIBHr8pUmilgQkAt6b X-Received: by 2002:a17:906:1d6:b0:991:d2a8:658a with SMTP id 22-20020a17090601d600b00991d2a8658amr11295485ejj.34.1690219281518; Mon, 24 Jul 2023 10:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690219281; cv=none; d=google.com; s=arc-20160816; b=CxxJONxPoiHLiLK8+Uf5+ksEBqBXG4tNLaGOs/OOeML3sbo/3tjjDLoTgDyRfiNgKj 00z3u1+mbQUPpWlhclFZkJ1N0DmSj7dTHe8VU20/hQKfwiseiNJ2rdFV2zUcZOcPrUgq RJGNbgej6ms+rQPyqqyQOOkYFtbgqvGQO5tzKP7HB3uJAGXuqi81YvYWUO5f0y3/SdWY 3dUWfdLGBCByhNt7blp3pvGDLWm3CTfnR4UmMY4TjXyr40GPt4gtpY9Ookl90dBJYy4U rdQCFffQWHSu0JaJIzD9onhanJgecHjbFHNU36HfRoZeGrV/pWi0tAa+bOXVqvDnhXxX FupQ== 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; bh=lETwx4XOcgBXYSAq8+InvXHv6a3bN4B1hG8UT7IPlj0=; fh=eGH/RXpvYa3PqBHwge9a81e/1yjjQBrCIozZj5KBM9o=; b=AwSHWb3rDbXe8SXyWRvR1yHNkLzcl92MhQAes7Hg/l4ldfrt7nPBP5Xq9Hvf8Lmrs3 pI9SanH429V/r1itLCj3CrmOF81GUhCzs3T1YtxitnwgjKtv+wcRg+iuKQ68scVs5S/x 2InOp6VuwepUtL6uOiiEncifBo9IiX+6W1nsMVhB7a36VgMx5sDDoLOctqGXvs8bu9+A eARpYLhOVdwlIAdx6za3QDhI5Hpmcy3c/WF9JQ6egSLL7Mv/MluPS9tZMVZXfXA6JOkp F1grtdTd3sXuFl2Q7h/jpxL1IAGKk6/5g52caLHL8hrJ/47KzsnZpErzTltILhr7pqgr nMtQ== ARC-Authentication-Results: i=1; mx.google.com; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id se22-20020a170906ce5600b0098dd9f4ed60si6234683ejb.848.2023.07.24.10.20.57; Mon, 24 Jul 2023 10:21:21 -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; 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 S229960AbjGXQsV (ORCPT + 99 others); Mon, 24 Jul 2023 12:48:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229550AbjGXQsU (ORCPT ); Mon, 24 Jul 2023 12:48:20 -0400 X-Greylist: delayed 600 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 24 Jul 2023 09:48:16 PDT Received: from h8.fbrelay.privateemail.com (h8.fbrelay.privateemail.com [162.0.218.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1701C10FF; Mon, 24 Jul 2023 09:48:15 -0700 (PDT) Received: from MTA-08-4.privateemail.com (unknown [198.54.122.141]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by h7.fbrelay.privateemail.com (Postfix) with ESMTPSA id D02F8604DA; Mon, 24 Jul 2023 12:31:06 -0400 (EDT) Received: from mta-08.privateemail.com (localhost [127.0.0.1]) by mta-08.privateemail.com (Postfix) with ESMTP id 8695618000A1; Mon, 24 Jul 2023 12:31:03 -0400 (EDT) Received: from hal-station.. (unknown [76.66.148.229]) by mta-08.privateemail.com (Postfix) with ESMTPA id 9F751180007F; Mon, 24 Jul 2023 12:30:56 -0400 (EDT) From: Hamza Mahfooz To: linux-kernel@vger.kernel.org Cc: Hamza Mahfooz , =?utf-8?q?Filipe_La=C3=ADns?= , Bastien Nocera , Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org Subject: [PATCH] HID: logitech-hidpp: add support for the Logitech G Pro X mouse Date: Mon, 24 Jul 2023 12:30:32 -0400 Message-ID: <20230724163032.15226-1-someguy@effective-light.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772323117302928606 X-GMAIL-MSGID: 1772323373322711905 The Logitech G Pro X mouse uses the HID++ protocol and supports battery reporting. So, add it to the list of supported devices. Signed-off-by: Hamza Mahfooz --- drivers/hid/hid-logitech-hidpp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c index 129b01be488d..34fc4f7b254a 100644 --- a/drivers/hid/hid-logitech-hidpp.c +++ b/drivers/hid/hid-logitech-hidpp.c @@ -4620,6 +4620,8 @@ static const struct hid_device_id hidpp_devices[] = { .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) }, + { /* Logitech G Pro X Superlight Gaming Mouse over USB */ + HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0xC094) }, { /* G935 Gaming Headset */ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, 0x0a87),