diff mbox series

[v4,3/4] input/i8042: Add debug output for quirks

Message ID 20220329142718.30921-3-wse@tuxedocomputers.com (mailing list archive)
State Mainlined
Commit 69c00695723d35ff3d25490b557799e238bcc0c3
Headers show
Series None | expand

Commit Message

Werner Sembach March 29, 2022, 2:27 p.m. UTC
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 <wse@tuxedocomputers.com>
---
 drivers/input/serio/i8042-x86ia64io.h | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

Comments

Hans de Goede March 29, 2022, 2:32 p.m. UTC | #1
Hi,

On 3/29/22 16:27, Werner Sembach wrote:
> 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 <wse@tuxedocomputers.com>

Thanks, patch looks good to me:

Reviewed-by: Hans de Goede <hdegoede@redhat.com>

Regards,

Hans


> ---
>  drivers/input/serio/i8042-x86ia64io.h | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
> 
> diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h
> index 1d2b34aac0c7..5c0eb5594fb1 100644
> --- a/drivers/input/serio/i8042-x86ia64io.h
> +++ b/drivers/input/serio/i8042-x86ia64io.h
> @@ -1421,6 +1421,31 @@ static int __init i8042_platform_init(void)
>  
>  	i8042_check_quirks();
>  
> +	pr_debug("Active quirks (empty means none):%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
> +		i8042_nokbd ? " nokbd" : "",
> +		i8042_noaux ? " noaux" : "",
> +		i8042_nomux ? " nomux" : "",
> +		i8042_unlock ? " unlock" : "",
> +		i8042_probe_defer ? "probe_defer" : "",
> +		i8042_reset == I8042_RESET_DEFAULT ?
> +			"" : i8042_reset == I8042_RESET_ALWAYS ?
> +				" reset_always" : " reset_never",
> +		i8042_direct ? " direct" : "",
> +		i8042_dumbkbd ? " dumbkbd" : "",
> +		i8042_noloop ? " noloop" : "",
> +		i8042_notimeout ? " notimeout" : "",
> +		i8042_kbdreset ? " kbdreset" : "",
> +#ifdef CONFIG_X86
> +		i8042_dritek ? " dritek" : "",
> +#else
> +		"",
> +#endif
> +#ifdef CONFIG_PNP
> +		i8042_nopnp ? " nopnp" : "");
> +#else
> +		"");
> +#endif
> +
>  	retval = i8042_pnp_init();
>  	if (retval)
>  		return retval;
diff mbox series

Patch

diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h
index 1d2b34aac0c7..5c0eb5594fb1 100644
--- a/drivers/input/serio/i8042-x86ia64io.h
+++ b/drivers/input/serio/i8042-x86ia64io.h
@@ -1421,6 +1421,31 @@  static int __init i8042_platform_init(void)
 
 	i8042_check_quirks();
 
+	pr_debug("Active quirks (empty means none):%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
+		i8042_nokbd ? " nokbd" : "",
+		i8042_noaux ? " noaux" : "",
+		i8042_nomux ? " nomux" : "",
+		i8042_unlock ? " unlock" : "",
+		i8042_probe_defer ? "probe_defer" : "",
+		i8042_reset == I8042_RESET_DEFAULT ?
+			"" : i8042_reset == I8042_RESET_ALWAYS ?
+				" reset_always" : " reset_never",
+		i8042_direct ? " direct" : "",
+		i8042_dumbkbd ? " dumbkbd" : "",
+		i8042_noloop ? " noloop" : "",
+		i8042_notimeout ? " notimeout" : "",
+		i8042_kbdreset ? " kbdreset" : "",
+#ifdef CONFIG_X86
+		i8042_dritek ? " dritek" : "",
+#else
+		"",
+#endif
+#ifdef CONFIG_PNP
+		i8042_nopnp ? " nopnp" : "");
+#else
+		"");
+#endif
+
 	retval = i8042_pnp_init();
 	if (retval)
 		return retval;