Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp145386rbb; Fri, 23 Feb 2024 15:16:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXBkjog7djeoWuZuls7/OsA9o9bJF9u+QGgZprMT3vVNYyVyixSJoe+qoy/op6k5poWc59GhyWIydRVqcIMZ906WbzgvGLdea9x0IK9pw== X-Google-Smtp-Source: AGHT+IHMksm5nyaJzRn7XR2EyfrfebaeXcw5Fo5Z1P/CtomUXTlxD/fF59oytTUOxIhvaxANeeOc X-Received: by 2002:a50:ef0d:0:b0:565:9dab:cd01 with SMTP id m13-20020a50ef0d000000b005659dabcd01mr311570eds.0.1708730202105; Fri, 23 Feb 2024 15:16:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708730202; cv=pass; d=google.com; s=arc-20160816; b=zYXeb+ZO56wPd/ROFz3uN0LaiJLpzDTjP2FqCWxpdQD4IE5/MFo/dBK2ip1SW4o1+2 eoId7hj2U4YkJc98W9QAFCN+IfH1nDj/wyOp6du7ef/aqAhGXvFPBftydzHDRjd5YM/X DgWEhmMHq+fUZuJgZSpcptsfBGlO0S/ITteb/OSOCBKKaN2vOcLwF+RBqQSbCbMjaiv+ vgKvHZl5PYWyTXI6+zmOsvB1lXZ3bXzHk+csKlc9Dz1anApAVZ0nss0rKnJZoHVOm25j FEu2pUQ0ONH+50wbr/+VbeT7xr7W62FhCvSKY0X9wCi5UH1N9yToreeNZ0jHSa5hcFWc DChg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=ap5jfynKUwvFrOMjr8+smc5ih4W+k0wxlpnBX6ZIbOw=; fh=MR0V0zkiv3bgP+/EoKrd71BIS/6UWjoqtb2O3SZ9Ltk=; b=kgERIqHiewtUncZVjvP+KKE1vZD2zMrSFjt4ohrpgzSYlMjiga/LazDxo32yvt1tmO svDH5tsJnbeFzPAQwh9Nrtm5U7179mVCV5k/qAfEbjMiuslxKr0n09TvbGcltrwuoFke jCjZeVh701eULp2QHuWpAZP8+QrCbgHvtZxNjnCVMKmqPi5O+F0NOSNR/txSMLcQJSsH 6iRXgxsr5n6iNqFbBXMoviXetLETz77mxv3+XsreIoVPm9ByF65d4iXXBC5bhTeBrRYi 8YL15p4SxMwDFAdDSRSrcZJbPIdUXCxNdqK5qNt0lQvxNG9P51Xr0d6Ye0EDjvtE1E4h XC2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cBuw6Mj5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-79303-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79303-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y17-20020aa7ccd1000000b005651aa38172si11975edt.418.2024.02.23.15.16.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 15:16:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79303-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cBuw6Mj5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-79303-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79303-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A04441F234F3 for ; Fri, 23 Feb 2024 23:16:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E15A14DFEC; Fri, 23 Feb 2024 23:16:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cBuw6Mj5" Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6252C14CAD1; Fri, 23 Feb 2024 23:16:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708730177; cv=none; b=kKlinBcXTf6x3Dfj7FjVR3SRUZZm5iXlKfqr/8lpfan5Y7J1gwyCmyVC1s0BBPBT+ZnvQT9bT8HVr2HutI473dK3WjJTetqLfpswdO+Lxn/lVuUic6BqDw6JZ2/GUiYNFQr+0FKJw95BfsgzVCAPEH4+0Fs4jeDJVIaGVaDAYOE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708730177; c=relaxed/simple; bh=dK1BjyOXGfLwN5ILE7hkJADDu3le/Lw6z1zJA5AtyVk=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=tP+gCul+tlK684WpH19abQshR7Zalsh3NNxfc3fhCppCFPdoVljt89/OgnzZa+KXdNBoxr9Rf+DccGUel1lzxr3e/m3VLdbm1WMVTqTZUMjPsC/azngmbJe8a6P/2QNle+b9m8omDHWE87mFzHrZIs1JWajco4E7CS/WMzvyU2o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cBuw6Mj5; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1dc3b4b9b62so12169735ad.1; Fri, 23 Feb 2024 15:16:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708730175; x=1709334975; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=ap5jfynKUwvFrOMjr8+smc5ih4W+k0wxlpnBX6ZIbOw=; b=cBuw6Mj5RlWHzQ1K4BrIsqytuOq/nV9w44hac/GsD4ak8dOFhr0CyUWYB+2s0Epsnt iNj04XR4ecoZ7IWJRexbRYV9GI1FXRXACa7W2JnQHlJ3BXOHBmeUXG/ad2kD/bWInd4q sgagdHAH5mfZ8YPU5YtJgFwLxEqkejkV6BJDR2/iJEQrP3rzJUv/g3S4sZcUX1FuVMSW o4m07EYYkR0VrD/W3kyaCYEJuZD++5JYawGAt/BN6aI5V4ALZtPKiI4nsIvsUHEk3gBJ NQUwRSDTyrTGsNS3mNFSinAfCzKQvPeTZ/3M0MZpUGrl2v+I7fDz4chXFjuVNh5mQlrd Mi5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708730175; x=1709334975; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ap5jfynKUwvFrOMjr8+smc5ih4W+k0wxlpnBX6ZIbOw=; b=IYD33roeWkx5jnZF2r6jQ+B5IJ8LIgP4NS7JQ6NqLbDXDCa0HegkD7nImr0CctpkA6 YbaUo85fkb1plmYDIj/TdlPc7KFcaXMVMg8q37swCIixyXLMlKC7cIsA7E6L8Z/rktEt xK9iSg20R/sdwuyDAa5f10wmq3cBYW3MskGyq3TdMBxl97cp7UMhJzK4wB4WVUo0Af3N rnxbtcWVTNPKoYfoD+iJOmdo62jsUvbJcDqor097IuzxN4KyujI87Ed3SAYTOHfgUu5J y4QL6GID1omS2QP9kvVlAPmzvxPg+w3uecEbowgHYZpXGKdqtnNgnyXNS9AaHKAXkDc3 ZGqA== X-Forwarded-Encrypted: i=1; AJvYcCVV64CS7RMeoSbXUTE2c0AN0w97jMH0fEYI2vjJEcrp/nOljbjVtH6icghsyVYVJXWtmZYrtojBZyuk9AE6zZzKhPU5FK/xsvmsRqOH12ee3UYcmro593cfD/U1KDK7uPDmvTxS2lXwSCU= X-Gm-Message-State: AOJu0YzYUf9PJHKSIxU7YdroMdgqIl0W2P+v/4+tN9CqIeCWTXeiQECJ H0vP0a0MkhBiliOkDrldO48Fua63mxVUoZpYfHnmJdweFR7C+FwB X-Received: by 2002:a17:902:db0a:b0:1db:c113:29bb with SMTP id m10-20020a170902db0a00b001dbc11329bbmr1480811plx.34.1708730175455; Fri, 23 Feb 2024 15:16:15 -0800 (PST) Received: from google.com ([2620:15c:9d:2:f0c6:1cdc:5abd:78b8]) by smtp.gmail.com with ESMTPSA id je5-20020a170903264500b001d8f82f90ccsm12119196plb.199.2024.02.23.15.16.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 15:16:15 -0800 (PST) Date: Fri, 23 Feb 2024 15:16:12 -0800 From: Dmitry Torokhov To: Jiri Kosina , Benjamin Tissoires Cc: kenalba@google.com, dianders@chromium.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] HID: input: avoid polling stylus battery on Chromebook Pompom Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Internal touchscreen on Trogdor Pompom (AKA Dynabook Chromebook C1) supports USI stylus. Unfortunately the HID descriptor for the stylus interface does not contain "Stylus" physical collection, which makes the kernel to try and pull battery information, resulting in errors. Apply HID_BATTERY_QUIRK_AVOID_QUERY to the device. Signed-off-by: Dmitry Torokhov --- 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 e4d2dfd5d253..05f451390a3b 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -426,6 +426,7 @@ #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 I2C_DEVICE_ID_CHROMEBOOK_TROGDOR_POMPOM 0x2F81 #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 c8b20d44b147..e03d300d2bac 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -411,6 +411,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_ENVY_X360_15_EU0556NG), HID_BATTERY_QUIRK_IGNORE }, + { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_CHROMEBOOK_TROGDOR_POMPOM), + HID_BATTERY_QUIRK_AVOID_QUERY }, {} }; -- 2.44.0.rc0.258.g7320e95886-goog -- Dmitry