From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
To: Richard Hartmann <richih.mailinglist@gmail.com>
Cc: ibm-acpi-devel@lists.sourceforge.net, ibm-acpi@hmh.eng.br,
linux-kernel@vger.kernel.org,
platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH] drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040
Date: Thu, 27 Dec 2012 08:38:44 -0200 [thread overview]
Message-ID: <20121227103843.GB7894@khazad-dum.debian.net> (raw)
In-Reply-To: <1356543973-18459-1-git-send-email-richih.mailinglist@gmail.com>
On Wed, 26 Dec 2012, Richard Hartmann wrote:
> + case TP_HKEY_EV_AC_CHANGED:
> + pr_info("AC status has changed\n");
> + /* X120e, x121e, X220, X220i, X220t, X230, T420, T420s, W520:
> + * AC status changed; can be triggered by plugging or
> + * unplugging AC adapter, docking or undocking, or closing
> + * or opening the lid. */
> + break;
>
> case TP_HKEY_EV_KEY_NUMLOCK:
> case TP_HKEY_EV_KEY_FN:
I guess we can drop that pr_info, and please block the issuing of the
event to userspace, like this:
case TP_HKEY_EV_AC_CHANGED:
/* X120e, x121e, X220, X220i, X220t, X230, T420, T420s, W520:
* AC status changed; can be triggered by plugging or
* unplugging AC adapter, docking or undocking, or closing
* or opening the lid. */
/* fallthrough */
and letting it proceed to the TP_HKEY_EV_KEY_NUMLOCK block.
Also, do we have any confirmed reports about the lid switch
causing event 0x6040? It doesn't look right... the comment
might need to be updated.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
next prev parent reply other threads:[~2012-12-27 10:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-26 17:46 Richard Hartmann
2012-12-27 5:51 ` Borislav Petkov
2012-12-27 10:38 ` Henrique de Moraes Holschuh [this message]
[not found] ` <CAD77+gTj+EvuOTU9SZBXOv92YmBdy3EgH9vHwypeFtAJY6+Eyw@mail.gmail.com>
2012-12-28 10:10 ` [ibm-acpi-devel] " Henrique de Moraes Holschuh
[not found] <CAD77+gROUfVX=9LPZc6_jf=2Bc_iaf5FW5Z2efwESzORNrq9dQ@mail.gmail.com>
2012-12-29 21:51 ` Richard Hartmann
2012-12-30 9:50 ` Borislav Petkov
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=20121227103843.GB7894@khazad-dum.debian.net \
--to=hmh@hmh.eng.br \
--cc=ibm-acpi-devel@lists.sourceforge.net \
--cc=ibm-acpi@hmh.eng.br \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=richih.mailinglist@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®