Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2817064rdb; Wed, 4 Oct 2023 12:18:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEynxIjbrpw3ulebfpfJ5EZCdTeDQNsNe3Tozy5meP+0f+V2jOAAtx2gQ92y/rUOe7G8PLh X-Received: by 2002:a05:6a20:1456:b0:134:73f6:5832 with SMTP id a22-20020a056a20145600b0013473f65832mr790565pzi.16.1696447093959; Wed, 04 Oct 2023 12:18:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696447093; cv=none; d=google.com; s=arc-20160816; b=YeLr4JOr1IcUEltl6/8LoLDP8lxWG3tXDmbpoHaOrugqo7S2Sr6eRQtXBf01H+LLvM 36SnHijLHmsLHMqnYWR3dqCHrLoCYf6ruw7IDk+zXKogVZiJiNIe+N0wCZYifsIZSvaZ kq0BBekB2I+SUPCYApsqUWnMjQZttG845Y4OMKZIaXGvb5Hg/Iuz+xwgfkmW3Dj9dz+o LxYgXtuE9URicImFx+ZJnGAP9YE8+lA359RUYYoZcHK79UxMdH0kRbY/orVoV8yQZhwS frQsuCngFB8EOr8d/BSxoiR4YxqdrrrZH9MZ4AjwXYH7a3rpvrvFyet7nyKQmsdP9H5k jKig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=YTG5e42rS31hVSVeMgxFbK0J62vGupfY+oXCNjrZSoo=; fh=bMvRh0TWu2LOxVZZmeZTvCRb1VoLbg1m5B4KwWJBWcU=; b=hydONuSt+irOKOSI8VPsHWOVZdOzZT1lHCd8LH8vdcB5xYmYoWkaDlFWnN2DOrE/U/ D0sHDPpZmhl2CxGmab3GE+Pvd9KYph8R2IJU8aj/iRLFsnSlRTEAGdh9J+PkRYmHiMxF QaiGVv+V1q93MK4e/ve6El+iYswNpb2HdAFtCP1d840U8kUE3CmiKVAJezE/8RAoh0Wv tJEdp3PECPs5w2N64385Tjt+GZYLQ0TSu1tqX+X4mlfJwRTxwx816glNcHx58SKIJQmw Nc9ZO2P7eV73+2s7iZXZYcHpNlb6aQdFlSu+GCGdOYnJeGbXqTO/+1f78FBHug6TE5Nm EuZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tShegiyB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id s31-20020a056a00179f00b0068e44a5e7ffsi4464441pfg.90.2023.10.04.12.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 12:18:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tShegiyB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id C29118085982; Wed, 4 Oct 2023 12:17:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243944AbjJDTQX (ORCPT + 99 others); Wed, 4 Oct 2023 15:16:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244619AbjJDTQU (ORCPT ); Wed, 4 Oct 2023 15:16:20 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26510171E; Wed, 4 Oct 2023 12:16:16 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E0C6C433C8; Wed, 4 Oct 2023 19:16:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696446975; bh=UGWfEq96LPoL2DJ4iPTL/UOZYg+9lvo1XfLHM+eQIc0=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=tShegiyBNnzyHruJ+bS/TORGBESplQQ2gItE4COmHAoR34eMmuxG20vRiuJNLE/CK 8OIICuQJproFGrNTruF16/Wdothk/TD2emE5Itt7641nqnj3UOkweWCiuZXB2GcHZx Hvmz1Xcz3zwpG1Z7xkaYy3qFM0GImuNC2D4V1ehm7gITRykaSP8knVpp88+kGoJAda vrui+4TEZrH9rxu5rrR+MFV1dbubxSIsOzc9LqfO2ypWh58hHl2vjAdVBZAeRmeHx6 uVvd28njDsf3yUt/3T0LUw8GN4rWQz0+/ogEjgy8x9I5Sauqzo3CZxKfKvraT03B46 ujClQCAHkvC5g== Date: Wed, 4 Oct 2023 21:16:12 +0200 (CEST) From: Jiri Kosina To: Fabian Vogt cc: Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] HID: Add quirk to ignore the touchscreen battery on HP ENVY 15-eu0556ng In-Reply-To: <4537226.LvFx2qVVIh@fabians-envy> Message-ID: References: <4537226.LvFx2qVVIh@fabians-envy> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Wed, 04 Oct 2023 12:18:00 -0700 (PDT) X-Spam-Level: ** On Tue, 3 Oct 2023, Fabian Vogt wrote: > 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 }, > {} Applied, thanks Fabian. -- Jiri Kosina SUSE Labs