All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
	x86@kernel.org, linux-kernel@vger.kernel.org,
	linux-input@vger.kernel.org, Takashi Iwai <tiwai@suse.de>
Subject: Re: [PATCH 0/4] x86: Trust firmware a bit more about presence of 8042
Date: Fri, 9 Dec 2016 21:54:33 -0200	[thread overview]
Message-ID: <20161209235432.GA9185@xfiles> (raw)
In-Reply-To: <1481317061-31486-1-git-send-email-dmitry.torokhov@gmail.com>

Hi Dmitry,

On Fri, Dec 09, 2016 at 12:57:37PM -0800, Dmitry Torokhov wrote:
> Hi,
> 
> Historically we did not trust PNP data regarding keyboard controllers on
> X86, but more and more boards get upset with us if they try to tell us that
> there is no keyboard controller and we still go and try to poke at where we
> think it might be. To work around this issue let's have a bit more faith in
> BIOS data, and if [lack] of PNP devices for mouse and keyboard matches whet
> firmware (basically ACPI FADT) tells us, let's abort i8042 probe.
> 
> We add a new flag (enum) to x86_platform.legacy structure so we can
> distinguish between cases where platform/subarch never has 8042 (such as
> MID platform) and cases where firmware says that it is not there, so that
> i8042 driver can either abort immediately or go and check for presence of
> PNP devices. We also remove x86_platform.i8042_detect() as it is no longer
> used (platforms can set value of x86_platform.legacy.i8042 as needed in
> quirks).
> 
> If you are OK with arch/x86 changes please apply together with the input
> part.

Looks very good, better than my initial idea of adding more code into i8042_detect.

Acked-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>

> 
> Thanks,
> Dmitry
> 
> Dmitry Torokhov (4):
>   x86/init: add i8042 state to the platform data
>   Input: i8042 - trust firmware a bit more when probing on X86
>   x86/init: remove i8042_detect() form platform ops
>   x86/init: fix a couple typos in arch/x86/include/asm/x86_init.h
> 
>  arch/x86/include/asm/x86_init.h         | 26 +++++++++++++++++++++-----
>  arch/x86/kernel/acpi/boot.c             |  7 +++++++
>  arch/x86/kernel/platform-quirks.c       |  5 +++++
>  arch/x86/kernel/x86_init.c              |  2 --
>  arch/x86/platform/ce4100/ce4100.c       |  6 ------
>  arch/x86/platform/intel-mid/intel-mid.c |  7 -------
>  drivers/input/serio/i8042-x86ia64io.h   | 10 +++++++---
>  7 files changed, 40 insertions(+), 23 deletions(-)
> 
> -- 
> 2.8.0.rc3.226.g39d4020
> 

  parent reply	other threads:[~2016-12-09 23:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-09 20:57 [PATCH 0/4] x86: Trust firmware a bit more about presence of 8042 Dmitry Torokhov
2016-12-09 20:57 ` [PATCH 1/4] x86/init: add i8042 state to the platform data Dmitry Torokhov
2016-12-19 10:39   ` [tip:x86/urgent] x86/init: Add " tip-bot for Dmitry Torokhov
2016-12-09 20:57 ` [PATCH 2/4] Input: i8042 - trust firmware a bit more when probing on X86 Dmitry Torokhov
2016-12-19 10:40   ` [tip:x86/urgent] Input: i8042 - Trust " tip-bot for Dmitry Torokhov
2016-12-09 20:57 ` [PATCH 3/4] x86/init: remove i8042_detect() form platform ops Dmitry Torokhov
2016-12-19 10:41   ` [tip:x86/urgent] x86/init: Remove i8042_detect() from " tip-bot for Dmitry Torokhov
2016-12-09 20:57 ` [PATCH 4/4] x86/init: fix a couple typos in arch/x86/include/asm/x86_init.h Dmitry Torokhov
2016-12-19 10:41   ` [tip:x86/urgent] x86/init: Fix a couple of comment typos tip-bot for Dmitry Torokhov
2016-12-09 23:54 ` Marcos Paulo de Souza [this message]
2016-12-12 14:30 ` [PATCH 0/4] x86: Trust firmware a bit more about presence of 8042 Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161209235432.GA9185@xfiles \
    --to=marcos.souza.org@gmail.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=hpa@zytor.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=tiwai@suse.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.