From mboxrd@z Thu Jan 1 00:00:00 1970 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 526242FBDF5; Fri, 9 Jan 2026 11:49:33 +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=1767959373; cv=none; b=Q3WG3M2cHrOVfmAc6K6P/vV7snCXMDga5xxtPPaQFAJ//JYAlZYPLYgHMXSNijCRhCPvrBG5Z7Ua4oCOLZ94hRXGTxMupOBUG3FRkIocpNFnqEpLGQhRT9rGG1UXVRUfNoCZufAshyWxbchUpkRLnR6yMbdShUF2axRkGUPFD5Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767959373; c=relaxed/simple; bh=uWCoSxeN9TJwByP/3WHdjMIbZyHtym+HPi6ck2up78s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Aj9J9jNCqiUOLYfXjIixvuE8uW6M7/zcwaUpmJ+TihYyrwqzYCGUZJzKZOPLn5t9X8gmm8E8MqQkPYQ9Oy7XCbRcQiGvY1n7ZxFU0A1Yn3GTYZBdUMXUYtiCJzCbiCaXuiVOshO2xEFTC2t7Wg9H4BTacHNUlEczxFhdOzq7Ex4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OPXJiomj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="OPXJiomj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6988C4CEF1; Fri, 9 Jan 2026 11:49:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767959373; bh=uWCoSxeN9TJwByP/3WHdjMIbZyHtym+HPi6ck2up78s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OPXJiomjUp6b/UVg8JBMKCv94IpaLNBUTruD5ee/ur4r9rmcnWS2+sZgs92qlpHFo tb814JfcOhHJG7wlLR+bgpXauqJgtEUw17iPgDIkqHCHBtNzrb4YO7oQqBGnAkd3+s w6Pz3+GAX3QKV4kC4ETPVuGJDk0P2Q61kI9P029k= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Hans de Goede , =?UTF-8?q?Andr=C3=A9=20Barata?= , "Mario Limonciello (AMD)" , Jiri Kosina , Sasha Levin Subject: [PATCH 6.6 029/737] HID: hid-input: Extend Elan ignore battery quirk to USB Date: Fri, 9 Jan 2026 12:32:48 +0100 Message-ID: <20260109112135.091542808@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260109112133.973195406@linuxfoundation.org> References: <20260109112133.973195406@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mario Limonciello (AMD) [ Upstream commit 534ca75e8e3b713514b3f2da85dab96831cf5b2a ] USB Elan devices have the same problem as the I2C ones with a fake battery device showing up. Reviewed-by: Hans de Goede Reported-by: André Barata Closes: https://bugzilla.kernel.org/show_bug.cgi?id=220722 Signed-off-by: Mario Limonciello (AMD) Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index f073d5621050a..fa3efe9701c96 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -386,10 +386,11 @@ static const struct hid_device_id hid_battery_quirks[] = { { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, I2C_DEVICE_ID_CHROMEBOOK_TROGDOR_POMPOM), HID_BATTERY_QUIRK_AVOID_QUERY }, /* - * Elan I2C-HID touchscreens seem to all report a non present battery, - * set HID_BATTERY_QUIRK_IGNORE for all Elan I2C-HID devices. + * Elan HID touchscreens seem to all report a non present battery, + * set HID_BATTERY_QUIRK_IGNORE for all Elan I2C and USB HID devices. */ { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, HID_ANY_ID), HID_BATTERY_QUIRK_IGNORE }, + { HID_USB_DEVICE(USB_VENDOR_ID_ELAN, HID_ANY_ID), HID_BATTERY_QUIRK_IGNORE }, {} }; -- 2.51.0