Received: by 2002:ab2:855:0:b0:1ef:b27b:cc29 with SMTP id 21csp1721766lqy; Fri, 29 Mar 2024 06:49:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVHddcB6kswnWvJ5Pd2VgITkEwPm9xZtyZ8TeUYjRHYSwnvkQwv1/gXLE5dAUjNJpXecXv+LxKiLiT32p5y0h42PKuvu/twTv/QZXW0Nw== X-Google-Smtp-Source: AGHT+IH6L+t4qipnbExb6T9QlV3UtapQU8/ougaoWQSFy12z0xPn1jpVXlvyAv+/mfblB/u1gOGO X-Received: by 2002:a05:6402:40c1:b0:568:a655:49c6 with SMTP id z1-20020a05640240c100b00568a65549c6mr2233204edb.8.1711720150929; Fri, 29 Mar 2024 06:49:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711720150; cv=pass; d=google.com; s=arc-20160816; b=KyBz0WO5bNd3GDTr5LOyE7y0fXmcFYf9J3t6SA/9M2btDQrWLFtKTYHzASvPIu523i 0O36w1eN7rgnHpghDY1+YCMbXJMq9FkXdpN2oDrAag7Eqg5wmDhl8C4k8usny1uhAjJQ /jnpNCqFgr4udJo/plvVwp1m/PdEnS7PK53AzK36bfKZKuS/nRjsjFHaNft8F+HQWnm9 XgjoBtYMWo3xK4OM3qpAS5ZL+QWIc8+9MBTaQhg4KD9T7EtEKOb9H0h8SHEha8EBdSAU rnIensYIz+BAwZFn9ZDLgWKLp1ZWtV0UO5RpLQcfgQKElqt7RWbvPM/cAPtkIcIudFVT vfdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=vOalainaxj0kNrgRo/zshbwUqxHMl0+P08rtKpBgFJA=; fh=40B15x10hfC42ikMC+rIJVKACU33cwqZpF0N/yUESnY=; b=wZO9feEU4KprNciLb12/AKO/lx+NvOKKzdXf8dOghTTH7SQ8FsegzsFGqMa+2hl8hv wanT7x7lyqKWiXX1SjDOkcWXfNF7C0tz9jZaO9n8fb5CgcXgtsdoxUaSKicBNoXhzKex lmYeeP3NVO1XvN1XpNN065vBJ/6lMjmbSIHoGegHTogbUemNNwqk8S5b6BsGgn8CFq3I u8BXDRkLkhiQ28wixIyYkW09teapPqZOk7oKnbXPrca75L8A308u3/Ku2jfeOeBspCCT pMGrAHy0VaFNsySB/DO4d0i0mSKD/MR3z5z1U1mftTb1Rf4LdKLf3gpv1l94bc0T41m/ CVUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h1lQygJO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124771-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124771-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m3-20020a509303000000b0056bf27dec57si1808281eda.105.2024.03.29.06.49.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 06:49:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124771-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=@kernel.org header.s=k20201202 header.b=h1lQygJO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124771-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124771-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 E65251F25C1F for ; Fri, 29 Mar 2024 13:47:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C57B1836D6; Fri, 29 Mar 2024 12:41:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h1lQygJO" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE4CD181D1C; Fri, 29 Mar 2024 12:41:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716112; cv=none; b=MGX3jvcrRPU7gfliILFM68qvhhhlazkp4dhDcrdlygLNPJFZREiqk+r6CctpvRoCgCMY1UAXi36p71N36YbSuqkzV9MveOmceRMO/oRHCV5bzYpW+ZWtxaqdR1jCGP5qvnLWPeHCKTmuUkxh2Aff+u4r23J6swk7OWZvdvvR834= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716112; c=relaxed/simple; bh=N9NLZwnyfGXSjCFwpZS/eluPGucTnHJguKQARkgOkCY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dDgTT+BY++zZSJvNVPt9z8JM2vs0x6POEiS/8VueUHOtcon5ADPxSRUg/zfXY3OP7GN89hrUmel1XVr+sTtuPjMDpe4AqWHytgap2FtQdG0eYzUfi2x1krTq/hIk334tOabqWwrGS/WMfwtY+4/0yeujxA+uy5Nw+SltCJt8aEc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h1lQygJO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7755EC433F1; Fri, 29 Mar 2024 12:41:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711716112; bh=N9NLZwnyfGXSjCFwpZS/eluPGucTnHJguKQARkgOkCY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h1lQygJO+jEeKqbIsHy8GCXS0loVjE1ZI7k/FqFO75SXXf7SAEdkjzV4aLRRBW1UU d9pMQMLOi0EoLFPyganir6UfAfBHgUNg/ZGrsfimZdzk9rdfj1pWtMzfER8n3aOAH6 f5qdHNCukkEu4hgoB298PZYiM7RRbPNXTrjkpCOZXFpZuZ40wTwEoYKwoBnWnYiQMF 97aDORCowQZwjaJ2eTMEJlvrlH/Je/yfiMcNsPn1ahNAXnIFORXyl3qkwoVOvd6yGT YIuxyhU8Tke3fpPxCDz8WxwgJXj2VlZ8+oYxoHEGVhpzvgDLd6TFqFE16W1dlWwe9P 8BYjYDWeUThtw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Dmitry Torokhov , Jiri Kosina , Sasha Levin , jikos@kernel.org, benjamin.tissoires@redhat.com, linux-input@vger.kernel.org Subject: [PATCH AUTOSEL 6.8 61/98] HID: input: avoid polling stylus battery on Chromebook Pompom Date: Fri, 29 Mar 2024 08:37:32 -0400 Message-ID: <20240329123919.3087149-61-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240329123919.3087149-1-sashal@kernel.org> References: <20240329123919.3087149-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.8.2 Content-Transfer-Encoding: 8bit From: Dmitry Torokhov [ Upstream commit 9a5b1521e2d0d7ace70c6e5eed073babcec91409 ] 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 Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- 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 828a5c022c640..175b6680087e0 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -430,6 +430,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 c8b20d44b1472..e03d300d2bac4 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.43.0