* [PATCH] Input: i8042 - add HP 15s-fq2xxx to dumbkbd list
@ 2021-06-09 7:33 Egor Ignatov
0 siblings, 0 replies; 2+ messages in thread
From: Egor Ignatov @ 2021-06-09 7:33 UTC (permalink / raw)
To: dmitry.torokhov; +Cc: linux-input, vojtech
The virtual i8042 keyboard controller on the HP Laptop 15s-fq2xxx
is not properly delivering GETID interrupts resulting in a large
initialization delay. With dumbkbd, the driver does not ask for the
keyboard ID, and uses the default configuration, which works fine
with this keyboard.
Link: https://lore.kernel.org/lkml/20210528154339.GA9116@suse.com/
Signed-off-by: Egor Ignatov <egori@altlinux.org>
---
drivers/input/serio/i8042-x86ia64io.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h
index a5a003553646..a29588014abc 100644
--- a/drivers/input/serio/i8042-x86ia64io.h
+++ b/drivers/input/serio/i8042-x86ia64io.h
@@ -981,6 +981,17 @@ static const struct dmi_system_id __initconst i8042_dmi_kbdreset_table[] = {
{ }
};
+static const struct dmi_system_id __initconst i8042_dmi_dumbkbd_table[] = {
+ {
+ /* HP 15s-fq2xxx - keyboard */
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "HP"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "HP Laptop 15s-fq2xxx"),
+ },
+ },
+ { }
+};
+
#endif /* CONFIG_X86 */
#ifdef CONFIG_PNP
@@ -1301,6 +1312,9 @@ static int __init i8042_platform_init(void)
if (dmi_check_system(i8042_dmi_kbdreset_table))
i8042_kbdreset = true;
+ if (dmi_check_system(i8042_dmi_dumbkbd_table))
+ i8042_dumbkbd = true;
+
/*
* A20 was already enabled during early kernel init. But some buggy
* BIOSes (in MSI Laptops) require A20 to be enabled using 8042 to
--
2.29.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] Input: i8042 - add HP 15s-fq2xxx to dumbkbd list
@ 2021-05-31 13:54 Egor Ignatov
0 siblings, 0 replies; 2+ messages in thread
From: Egor Ignatov @ 2021-05-31 13:54 UTC (permalink / raw)
To: linux-input
The virtual i8042 keyboard controller on the HP Laptop 15s-fq2xxx
is not properly delivering GETID interrupts resulting in a large
initialization delay. With dumbkbd, the driver does not ask for the
keyboard ID, and uses the default configuration, which works fine
with this keyboard.
Link: https://lore.kernel.org/lkml/20210528154339.GA9116@suse.com/
Signed-off-by: Egor Ignatov <egori@altlinux.org>
---
drivers/input/serio/i8042-x86ia64io.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h
index a5a003553646..a29588014abc 100644
--- a/drivers/input/serio/i8042-x86ia64io.h
+++ b/drivers/input/serio/i8042-x86ia64io.h
@@ -981,6 +981,17 @@ static const struct dmi_system_id __initconst i8042_dmi_kbdreset_table[] = {
{ }
};
+static const struct dmi_system_id __initconst i8042_dmi_dumbkbd_table[] = {
+ {
+ /* HP 15s-fq2xxx - keyboard */
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "HP"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "HP Laptop 15s-fq2xxx"),
+ },
+ },
+ { }
+};
+
#endif /* CONFIG_X86 */
#ifdef CONFIG_PNP
@@ -1301,6 +1312,9 @@ static int __init i8042_platform_init(void)
if (dmi_check_system(i8042_dmi_kbdreset_table))
i8042_kbdreset = true;
+ if (dmi_check_system(i8042_dmi_dumbkbd_table))
+ i8042_dumbkbd = true;
+
/*
* A20 was already enabled during early kernel init. But some buggy
* BIOSes (in MSI Laptops) require A20 to be enabled using 8042 to
--
2.29.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-09 7:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09 7:33 [PATCH] Input: i8042 - add HP 15s-fq2xxx to dumbkbd list Egor Ignatov
-- strict thread matches above, loose matches on Subject: below --
2021-05-31 13:54 Egor Ignatov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).