Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3357132rwb; Fri, 20 Jan 2023 15:05:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXscvqmwp64rWTRGngor+V4mF+tO9cedofWRmlzXCLaeDaHNBrYLUW3t++JKXTRvAfcE+KsU X-Received: by 2002:a05:6a21:3290:b0:af:76da:1462 with SMTP id yt16-20020a056a21329000b000af76da1462mr22744200pzb.40.1674255934736; Fri, 20 Jan 2023 15:05:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674255934; cv=none; d=google.com; s=arc-20160816; b=ujBU6R9rYP5XAF2sTL9HY2MgKnUS1wsr1ntfxw9hkFpAMX/Peg8mbIArDQ2LjOgYNx q7Bgo0msZPofj/UV1nPlyISaCLo7isQjMjSSzoPRThXp+hF9JgzFL8dTKl/9k2fuODzY LdgxeWyCb3X/lsn1roSSB11Q3jQYu0szLNx+RPH29QswukEpNFONlLpAzc8E1MkqL5J+ zTvjX9OYz/UUhfSuVLNQ+CnAvRCccTAZRQal712ngHmUs7Zd5BU1cZMrn/okQI4nCkm0 tq7JM5S9sIk3/GhlfUucSjq6pojXTUbu17QinkFkNfJgpJvqg24vwt3rKizC6kzRXsLp OsKw== 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:dkim-signature; bh=DmBIGtmsW0hyN3KcGrzBS21cJxZDpZKItFdUmO4gBu4=; b=eW/uBHkazZ2b2e9i/nvGin7lXd1/ngB8bxZu27VzvskBtO4h8in45T387E43SfKar6 80a7GjoQMWd0Mg86E4YAPpkvV5cex5dXRTXin7XzhPl3pG6povMEgxBfgqdgzT8NwL5P d0A4HfdhJdtY8SQ282FaEvVZK0n1UzNCbXP2CBoBWm+nvK6ngJnDpeOXeVitaGBRgP+F sCUqgH/k9qYMgmu/Y565b/YY8uo2RsrTPk71VHXqtuHNBopOyiqAfzdqlnFQSjxk4imZ ZpR5g1UPbAjSWIxVezEu+EINA/W10qdQD/foAh8nwDdk4xVXSEUbhUYmkzeSl7/da9nc CDkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=rbWwDpso; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j62-20020a638041000000b004b51282ce3bsi34951596pgd.422.2023.01.20.15.05.28; Fri, 20 Jan 2023 15:05:34 -0800 (PST) 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; dkim=pass header.i=@web.de header.s=s29768273 header.b=rbWwDpso; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=web.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229698AbjATWnj (ORCPT + 52 others); Fri, 20 Jan 2023 17:43:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbjATWni (ORCPT ); Fri, 20 Jan 2023 17:43:38 -0500 Received: from mout.web.de (mout.web.de [217.72.192.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAFEA13DF7; Fri, 20 Jan 2023 14:43:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1674254604; bh=SmK4fdjCc+5+gIx3b4Eq/5hJTyyAOSXxn2Irl+5x9sQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=rbWwDpsoaA9989HeUv8NI0B38u35ZqWZEbTUE4jON1fFxqsrYsLMMVEg8KSBgNGUs wNisqI2vHvqdS/FCYk70XhjPKc0emCd3spjJ+lMu5Xvzu6JSyWWSxmTmAqNTzo5lRl +h3os2BZAa35HBTcYX6M9LoHZvobIagXrZQOVmyIBd5J9APkN9cugULTa8nf9PCVUE kqCcgtzmEXMNjInMMrMqqFlf3hk64jlOG0N/NJbBkxljgLpPbOrHO4LpsIAImycW4V hMsPI1nMsqDDuZx/WMuRMPjKNDyxN/sQbIcAvbTcqUGP9uj92Ej6fScpCuYCgvZoKx Ub4sPEQyJ493Q== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from luka-spectre.fritz.box ([77.182.131.156]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1N8n4G-1ogAU42qsY-015sFO; Fri, 20 Jan 2023 23:38:14 +0100 From: Luka Guzenko To: jikos@kernel.org Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Luka Guzenko Subject: [PATCH] HID: Ignore battery for ELAN touchscreen 29DF on HP Date: Fri, 20 Jan 2023 23:37:41 +0100 Message-Id: <20230120223741.3007-1-l.guzenko@web.de> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:XHSDTG/Z83oXdh/P7+KCto1i2A1FPHqUwt4R7sQRZr9zP6M0smE +duC7xldbCGIZLf4H4hBvG3SPFrO0XsYblTc08kw+ytZylUrVTTrJ3fVvfHZvPUGXv+dFM+ tT2hAfAAmfUz3aiD1sZ2hHZZXwLlJP7AXfPa0lBtc936SmMYICzrCHIrj9rSkvLVH/pZn+s Ra8XW82cxWbpwXmxoDKkg== UI-OutboundReport: notjunk:1;M01:P0:7OmScQ0ZIoI=;qa+lcBfvBh2BVktoVTfJTom3f5l /kTUcj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NSWL_LOW, 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 The touchscreen reports a battery status of 0% and jumps to 1% when a stylus is used. The device ID was added and the battery ignore quirk was enabled for it. Signed-off-by: Luka Guzenko =2D-- 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 82713ef3aaa6..78f4846e5711 100644 =2D-- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -414,6 +414,7 @@ #define I2C_DEVICE_ID_HP_ENVY_X360_15T_DR100 0x29CF #define I2C_DEVICE_ID_HP_ENVY_X360_EU0009NV 0x2CF9 #define I2C_DEVICE_ID_HP_SPECTRE_X360_15 0x2817 +#define I2C_DEVICE_ID_HP_SPECTRE_X360_13_AW0020NG 0x29DF #define USB_DEVICE_ID_ASUS_UX550VE_TOUCHSCREEN 0x2544 #define USB_DEVICE_ID_ASUS_UX550_TOUCHSCREEN 0x2706 #define I2C_DEVICE_ID_SURFACE_GO_TOUCHSCREEN 0x261A diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 9b59e436df0a..27f17fafce58 100644 =2D-- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -384,6 +384,8 @@ static const struct hid_device_id hid_battery_quirks[]= =3D { HID_BATTERY_QUIRK_IGNORE }, { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_SPECTRE_X360_15), HID_BATTERY_QUIRK_IGNORE }, + { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_HP_SPECTRE_X360_13_AW= 0020NG), + HID_BATTERY_QUIRK_IGNORE }, { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_SURFACE_GO_TOUCHSCREE= N), HID_BATTERY_QUIRK_IGNORE }, { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_SURFACE_GO2_TOUCHSCRE= EN), =2D- 2.39.1