* Re: [PATCH v2] Implement i8042 detect by BIOS FADT i8042 flag
2015-12-02 19:07 ` Wan Zongshun
(?)
@ 2015-12-02 11:45 ` Borislav Petkov
-1 siblings, 0 replies; 3+ messages in thread
From: Borislav Petkov @ 2015-12-02 11:45 UTC (permalink / raw)
To: Wan Zongshun; +Cc: dmitry.torokhov, linux-input, linux-kernel, mcuos.com
On Wed, Dec 02, 2015 at 02:07:18PM -0500, Wan Zongshun wrote:
> Detecting x86 platform supporting i8042 or not, we should resort
> to BIOS's FADT i8042 flag per ACPI spec.
>
> Currently, Windows is conforming to this spec, and request this
> flag to detect i8042 supporting.
>
> Signed-off-by: Wan Zongshun <Vincent.Wan@amd.com>
> ---
> drivers/input/serio/i8042-x86ia64io.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h
> index c115565..73686bd 100644
> --- a/drivers/input/serio/i8042-x86ia64io.h
> +++ b/drivers/input/serio/i8042-x86ia64io.h
> @@ -9,6 +9,7 @@
>
> #ifdef CONFIG_X86
> #include <asm/x86_init.h>
> +#include <linux/acpi.h>
> #endif
>
> /*
> @@ -1047,6 +1048,9 @@ static int __init i8042_platform_init(void)
> /* Just return if pre-detection shows no i8042 controller exist */
> if (!x86_platform.i8042_detect())
> return -ENODEV;
> +
> + if (!(acpi_gbl_FADT.boot_flags & ACPI_FADT_8042))
> + return -ENODEV;
> #endif
Acked-by: Borislav Petkov <bp@suse.de>
with the small remark that whoever commits it, could add the URL of the
microsoft document to the commit message for further reference.
Thanks.
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2] Implement i8042 detect by BIOS FADT i8042 flag
@ 2015-12-02 19:07 ` Wan Zongshun
0 siblings, 0 replies; 3+ messages in thread
From: Wan Zongshun @ 2015-12-02 19:07 UTC (permalink / raw)
To: dmitry.torokhov, bp, linux-input; +Cc: linux-kernel, mcuos.com, Wan Zongshun
Detecting x86 platform supporting i8042 or not, we should resort
to BIOS's FADT i8042 flag per ACPI spec.
Currently, Windows is conforming to this spec, and request this
flag to detect i8042 supporting.
Signed-off-by: Wan Zongshun <Vincent.Wan@amd.com>
---
drivers/input/serio/i8042-x86ia64io.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h
index c115565..73686bd 100644
--- a/drivers/input/serio/i8042-x86ia64io.h
+++ b/drivers/input/serio/i8042-x86ia64io.h
@@ -9,6 +9,7 @@
#ifdef CONFIG_X86
#include <asm/x86_init.h>
+#include <linux/acpi.h>
#endif
/*
@@ -1047,6 +1048,9 @@ static int __init i8042_platform_init(void)
/* Just return if pre-detection shows no i8042 controller exist */
if (!x86_platform.i8042_detect())
return -ENODEV;
+
+ if (!(acpi_gbl_FADT.boot_flags & ACPI_FADT_8042))
+ return -ENODEV;
#endif
/*
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v2] Implement i8042 detect by BIOS FADT i8042 flag
@ 2015-12-02 19:07 ` Wan Zongshun
0 siblings, 0 replies; 3+ messages in thread
From: Wan Zongshun @ 2015-12-02 19:07 UTC (permalink / raw)
To: dmitry.torokhov, bp, linux-input; +Cc: linux-kernel, mcuos.com, Wan Zongshun
Detecting x86 platform supporting i8042 or not, we should resort
to BIOS's FADT i8042 flag per ACPI spec.
Currently, Windows is conforming to this spec, and request this
flag to detect i8042 supporting.
Signed-off-by: Wan Zongshun <Vincent.Wan@amd.com>
---
drivers/input/serio/i8042-x86ia64io.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h
index c115565..73686bd 100644
--- a/drivers/input/serio/i8042-x86ia64io.h
+++ b/drivers/input/serio/i8042-x86ia64io.h
@@ -9,6 +9,7 @@
#ifdef CONFIG_X86
#include <asm/x86_init.h>
+#include <linux/acpi.h>
#endif
/*
@@ -1047,6 +1048,9 @@ static int __init i8042_platform_init(void)
/* Just return if pre-detection shows no i8042 controller exist */
if (!x86_platform.i8042_detect())
return -ENODEV;
+
+ if (!(acpi_gbl_FADT.boot_flags & ACPI_FADT_8042))
+ return -ENODEV;
#endif
/*
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-12-02 11:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-02 19:07 [PATCH v2] Implement i8042 detect by BIOS FADT i8042 flag Wan Zongshun
2015-12-02 19:07 ` Wan Zongshun
2015-12-02 11:45 ` Borislav Petkov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.