Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2161126rdb; Tue, 3 Oct 2023 12:07:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHk5LTiD/64mWPCo1LUjqwwMV+cetVBbTqCYHJi7Zt//svJsEnM0ImxvZ5FxiR2e1kqcJCs X-Received: by 2002:a05:6870:c14f:b0:1c0:c42f:6db2 with SMTP id g15-20020a056870c14f00b001c0c42f6db2mr537737oad.37.1696360037060; Tue, 03 Oct 2023 12:07:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696360037; cv=none; d=google.com; s=arc-20160816; b=FwJdWcg2pvb5o7UxcfoWiWl3bHzXziBdfCIRuTEflooruCtzxGmYzpPBTk6DyXh6IW 8VnT+5epKDFJFaRjOCrHRSKiPIhED99968OiMd5diI9KDR0uRb6vFVz78/42XRtZVMuI k7xDAbkpqUNet7CKdP+2uU891LNwY3MDGsUaAiQaS7xruDl3kycehQqYHa4+qk7iVbQQ w6PNtJAEMc4YNw8J53HaL6hnGPLmMAhyGv8zbaV4kdiWJKuELlSyQP0tpAprv5GGjmdt TwgGko63fdVtKHxQMRqpn1Zo38FJsRjdDCZFjzA8RseYiV2BVL+ERIr/JGQV9f/DwEzO jEug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=Qod2h+D1j9BwudHNh2uS6Rv36AK72siO/uaRYHYHZ0w=; fh=DAzEegt5/KJ6Ouw2kkDX8kxRfasp43KUNS0LfIXZNqY=; b=Pka8FcoSrArho5Lk2NUX/bA8U7XrIbzspb9lQoOeAH4uVxhuuvroXO97VWwSR5fBYS WiGJxDDKzY8uN5lcixdaqOOMZLDyxRVU8hPj2qRBbA3zEEyC2u4Y+bHPBCIyJhcdLQZT SAO51/VViIEyqeNP6Qi8X8G+sT/jWL/PS6HikSXJqZnkctE5CORJpyH+XRBGKwEFWrvS I05gVzAkjrLDn7kPXfiigwrjDrrpTpUOHlCPJU+BazvJxG7+MwP/rQrOE1oyRJDdZ333 MxiVQIrLLyw4wSjKNuzTfi254bkSHp7XxeRnhNHJKgPrdFX1td/TtC5OIaDAnFZbbIEW JvrA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id i129-20020a639d87000000b00578a02ee39fsi2098957pgd.334.2023.10.03.12.07.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 12:07:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 8B45482DFD1E; Tue, 3 Oct 2023 12:07:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240899AbjJCTHP (ORCPT + 99 others); Tue, 3 Oct 2023 15:07:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240854AbjJCTHO (ORCPT ); Tue, 3 Oct 2023 15:07:14 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCB5CB7; Tue, 3 Oct 2023 12:07:09 -0700 (PDT) Received: from fabians-envy.localnet ([84.177.92.38]) by mrelayeu.kundenserver.de (mreue011 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MVv4X-1rDDg82zZ7-00RsGI; Tue, 03 Oct 2023 21:07:01 +0200 From: Fabian Vogt To: Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] HID: Add quirk to ignore the touchscreen battery on HP ENVY 15-eu0556ng Date: Tue, 03 Oct 2023 21:07:00 +0200 Message-ID: <4537226.LvFx2qVVIh@fabians-envy> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:6/bSl0GhbFvOJLdGRjw2uoW+LTJqqIhl8zbVzb0If4Zp+E66czE z0ufViNhmJdjdf5UaipN3qhvVNaZvEa36+HcIWNp1YBQeF8NRLPrCU7WWNZusNUC5dlVws1 jpOR3qIZYORA3o+y0a5koNL448XTboJ1Po0mi21Jo53jNivJqXizhwNNSyMFzG/sEbcD3fE aw1iOjLRSDc5nxDn4wutw== UI-OutboundReport: notjunk:1;M01:P0:uuS7Q6s66iE=;OYS7ZZD1k+3WOSTUJyYVBzwAjEa ElQ1E6W3xPzJmtVu/ei0kRhiaqG+FQGaWsCYf9MCmfy4dSiuQPiqDt+5CcjoqNYQg6MsVlPn0 zmqbTmvBsBBkKPszF/s2SEg6l4OZaSJoNr4v0ehiw851EU5KG/QfjCZzlkRcc102rLAynPtPW Mm0WqsAYzHCK/Vo/1va/6FU0CU8U+YcNzNYQSbh3hWL7r4SOVw60bIpkSiOZn0bWuebyRTF/Y tKIbgBuipeBefrzErqwhg7foAu1PTIBfpwhdITWGUDEmfpTJw8AxdBA1rsJvJssjK7jzwrKBH RpPiahYiz2Izxs/518WOT6CMB7KF57kvModzT/JIRjHahekxUxBZBRWWFcSdGuKaf+xHNkGQj vDYSai5dnlMPzh16+757QmPa5nlc39lQLMJKa1OSdJWjFqs1T8AJE3RVXxsPidPU6Dt5YTVDl qtVRUmTu73uxl3mEmRsvIaV5hnhVQ9R4FIenpF32j3RLc4WgzQXUlT326i9M3TOP5GmgCb18t GMm1iuAC6XB+A4fM/8BHMPsbE5U9YVEwpkDcjz8zn3EGIF6K8g24i2iG8nUSD8O2584aKacQV 0nOIx31+NQ+EB4eUhZRUY5uijqIjuaCLZSL2yniR5zcZRZLOyEueFolQATFuzoJPuzP9kSvgV ZmZj2Rzs21oBU6jjz8EjaM8RZsw4iV6q4XBNMOtOxCF0YiYGOF6bLtl4veGizjDTtBeDz5SIF pUv60JI75w4+hm08f2obkq+ZxWcGAZIGjVXe5w3i5VhvM8SUwC1Gz2LHGl2+a5lkPgzfJO9j/ blizskXN/b5kN4AakU3nVUvpK/15lvgCpmiY2uiVNbgkWi69alJmFTtl58ZPDR3MzvuUCiS22 XgQHmS04EjzlNcT9yeGKzKFCL5Z2FvSMsgo8= X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 12:07:15 -0700 (PDT) Like various other devices using similar hardware, this model reports a perpetually empty battery (0-1%). Join the others and apply HID_BATTERY_QUIRK_IGNORE. Signed-off-by: Fabian Vogt --- drivers/hid/hid-ids.h | 1 + drivers/hid/hid-input.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 7e499992a793..e4d2dfd5d253 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -425,6 +425,7 @@ #define I2C_DEVICE_ID_HP_SPECTRE_X360_13T_AW100 0x29F5 #define I2C_DEVICE_ID_HP_SPECTRE_X360_14T_EA100_V1 0x2BED #define I2C_DEVICE_ID_HP_SPECTRE_X360_14T_EA100_V2 0x2BEE +#define I2C_DEVICE_ID_HP_ENVY_X360_15_EU0556NG 0x2D02 #define USB_VENDOR_ID_ELECOM 0x056e #define USB_DEVICE_ID_ELECOM_BM084 0x0061 diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 0235cc1690a1..c8b20d44b147 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -409,6 +409,8 @@ static const struct hid_device_id hid_battery_quirks[] = { HID_BATTERY_QUIRK_IGNORE }, { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_SPECTRE_X360_14T_EA100_V2), HID_BATTERY_QUIRK_IGNORE }, + { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_ENVY_X360_15_EU0556NG), + HID_BATTERY_QUIRK_IGNORE }, {} }; -- 2.42.0