From patchwork Tue Oct 3 19:07:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Vogt X-Patchwork-Id: 148032 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp2293008vqb; Tue, 3 Oct 2023 12:07:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHIP++OUW3j5OjQooEK0r7SCLM65hPZOChb4FhiT5ywbaB0MbHu/cGorMP/H9FnltklAsMQ X-Received: by 2002:a05:6a00:b90:b0:690:d5d5:8d24 with SMTP id g16-20020a056a000b9000b00690d5d58d24mr460233pfj.20.1696360039692; Tue, 03 Oct 2023 12:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696360039; cv=none; d=google.com; s=arc-20160816; b=JLQiLq9ujYO2qXTrF+xBaC79wsEYJNsJWF7M8ox2YCw5ZboL6dtEApTKgWvFN3zqNG OIRjm3hEMmq2deomgNhYOLUo5e7Dc2FjyxXrxPTH9DhgaKp3a4ZEcUtbwSa9V9X/b3nB cn+M8DWzZ8EvQtnCwNTM+mdAKVsfrlIy4SToji5dzO6E4MF0uLshQ95i/ByApnaPICL5 E2DUyKib9W0/lEMjpD1eDaONcvspf0e+OLvvdB5xgt3slm21YVHB3fWi6NjOCbxwFJdV YJAlFNPpuWxrQjWwWsILr+bANjOm7X4vB4AlxDlwxfxmpsxPAa1dMIrWRsCbpJItiHd2 bQJA== 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 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id p10-20020a056a000a0a00b0068feb1cf986si2165381pfh.241.2023.10.03.12.07.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 12:07:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 C169682DFD15; Tue, 3 Oct 2023 12:07:18 -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 S240868AbjJCTHP (ORCPT + 17 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 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:18 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778762424781978765 X-GMAIL-MSGID: 1778762424781978765 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 }, {} };