Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH] Input: i8042 - add reset quirk for NEC VersaPro PC-VK22TGSCN
@ 2026-11-28 11:08 Rostislav Maksimenko
  2026-12-01  6:44 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Rostislav Maksimenko @ 2026-11-28 11:08 UTC (permalink / raw)
  To: dmitry.torokhov; +Cc: linux-input, linux-kernel, stable, Rostislav Maksimenko

On the NEC VersaPro PC-VK22TGSCN the internal keyboard and the Elantech
touchpad intermittently fail to work at boot. atkbd reports:

  atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
  atkbd serio0: Failed to enable keyboard on isa0060/serio0

and the AUX port is never registered, so the touchpad does not appear at
all. Both devices work in BIOS and in GRUB, and i8042 status reads are
fine (no "Can't read CTR" / "Reset failed"), so the EC-emulated PS/2
interface simply does not accept commands until it is reset.

The failure is frequent: 22 of the last 47 boots in my journal show it,
and in all 22 the AUX port is missing as well. Rebooting usually fixes
it, which matches the EC not being ready when i8042 initializes.

Booting with "i8042.reset" fixes both devices: the last 13 boots with
that parameter show no failure and a working AUX port, with no side
effects observed. Add a DMI quirk for the model I can test. Other
VersaPro models from the same era likely need the same quirk, but I have
no unit to confirm that.

Note that DMI_SYS_VENDOR "NEC" is already used in other kernel quirk
tables (drivers/acpi/battery.c), it was only missing from
i8042_dmi_quirk_table.

Cc: stable@vger.kernel.org
Signed-off-by: Rostislav Maksimenko <Maildeltachat1@yandex.ru>
---
 drivers/input/serio/i8042-acpipnpio.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/input/serio/i8042-acpipnpio.h b/drivers/input/serio/i8042-acpipnpio.h
index 1b1c5d4..3014376 100644
--- a/drivers/input/serio/i8042-acpipnpio.h
+++ b/drivers/input/serio/i8042-acpipnpio.h
@@ -962,6 +962,14 @@ static const struct dmi_system_id i8042_dmi_quirk_table[] __initconst = {
 		},
 		.driver_data = (void *)(SERIO_QUIRK_NOLOOP)
 	},
+	{
+		/* NEC VersaPro PC-VK22TGSCN */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "NEC"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "PC-VK22TGSCN"),
+		},
+		.driver_data = (void *)(SERIO_QUIRK_RESET_ALWAYS)
+	},
 	{
 		/* Medion MAM 2070 */
 		.matches = {
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-01  6:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-28 11:08 [PATCH] Input: i8042 - add reset quirk for NEC VersaPro PC-VK22TGSCN Rostislav Maksimenko
2026-12-01  6:44 ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox