Skip to content

Commit 69c0069

Browse files
tuxedo-wsedtor
authored andcommitted
Input: i8042 - add debug output for quirks
Make new quirk table easily debugable with some debug output. With no functional change, evaluation of i8042_reset_quirk and i8042_reset_never_quirk had to be moved for this. Signed-off-by: Werner Sembach <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent ff94626 commit 69c0069

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

drivers/input/serio/i8042-x86ia64io.h

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,6 +1421,31 @@ static int __init i8042_platform_init(void)
14211421

14221422
i8042_check_quirks();
14231423

1424+
pr_debug("Active quirks (empty means none):%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
1425+
i8042_nokbd ? " nokbd" : "",
1426+
i8042_noaux ? " noaux" : "",
1427+
i8042_nomux ? " nomux" : "",
1428+
i8042_unlock ? " unlock" : "",
1429+
i8042_probe_defer ? "probe_defer" : "",
1430+
i8042_reset == I8042_RESET_DEFAULT ?
1431+
"" : i8042_reset == I8042_RESET_ALWAYS ?
1432+
" reset_always" : " reset_never",
1433+
i8042_direct ? " direct" : "",
1434+
i8042_dumbkbd ? " dumbkbd" : "",
1435+
i8042_noloop ? " noloop" : "",
1436+
i8042_notimeout ? " notimeout" : "",
1437+
i8042_kbdreset ? " kbdreset" : "",
1438+
#ifdef CONFIG_X86
1439+
i8042_dritek ? " dritek" : "",
1440+
#else
1441+
"",
1442+
#endif
1443+
#ifdef CONFIG_PNP
1444+
i8042_nopnp ? " nopnp" : "");
1445+
#else
1446+
"");
1447+
#endif
1448+
14241449
retval = i8042_pnp_init();
14251450
if (retval)
14261451
return retval;

0 commit comments

Comments
 (0)