Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1248486
| From | Borislav Petkov <bp@alien8.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] input: i8042: add quirk to implement i8042 detect for AMD |
| Date | 2015-10-16 11:00 +0200 |
| Message-ID | <qk91N-1e0-17@gated-at.bofh.it> (permalink) |
| References | <qk91N-1e0-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Oct 16, 2015 at 09:27:00AM -0400, Vincent Wan wrote:
> Detecting platform supports i8042 or not, AMD resorted to
> BIOS's FADT i8042 flag.
>
> Signed-off-by: Vincent Wan <Vincent.Wan@amd.com>
> ---
> drivers/input/serio/i8042-x86ia64io.h | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h
> index c115565..bf3a605 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,11 @@ 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 (boot_cpu_data.x86_vendor == X86_VENDOR_AMD) {
Why the vendor check if you're accessing a bit defined in the ACPI spec?
> + if (!(acpi_gbl_FADT.boot_flags & ACPI_FADT_8042))
> + return -ENODEV;
> + }
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH] input: i8042: add quirk to implement i8042 detect for AMD Borislav Petkov <bp@alien8.de> - 2015-10-16 11:00 +0200
Re: [PATCH] input: i8042: add quirk to implement i8042 detect for AMD Wan ZongShun <mcuos.com@gmail.com> - 2015-10-16 11:40 +0200
Re: [PATCH] input: i8042: add quirk to implement i8042 detect for AMD Borislav Petkov <bp@alien8.de> - 2015-10-16 12:30 +0200
Re: [PATCH] input: i8042: add quirk to implement i8042 detect for AMD Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2015-10-17 18:40 +0200
csiph-web