From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
To: Lyude Paul <lyude@redhat.com>
Cc: ibm-acpi-devel@lists.sourceforge.net,
Henrique de Moraes Holschuh <ibm-acpi@hmh.eng.br>,
Darren Hart <dvhart@infradead.org>,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] thinkpad_acpi: Add support for X1 Yoga (2016) Tablet Mode
Date: Thu, 27 Oct 2016 15:54:04 -0200 [thread overview]
Message-ID: <20161027175404.GA25503@khazad-dum.debian.net> (raw)
In-Reply-To: <1477579932.3666.4.camel@redhat.com>
On Thu, 27 Oct 2016, Lyude Paul wrote:
> as well, can someone confirm this patch made it to the ibm-acpi-devel
> list? When I originally sent this I realized I wasn't subscribed to the
> list, so I'm guessing I might need to resend.
I received it. I just didn't have the time to go over it in detail.
At first look, it seems correct...
> > + /* For X1 Yoga (2016) */
> > + if (!res && acpi_evalf(ec_handle, &status, "CMMD", "qd")) {
> > + tp_features.hotkey_tablet = 1;
> > + tp_features.hotkey_tablet_cmmd = 1;
> > + tabletsw_state = (status == TP_EC_CMMD_TABLET_MODE);
> > +
> > + pr_info("Possible tablet mode switch found; ThinkPad
> > in %s mode\n",
> > + (tabletsw_state) ? "tablet" : "laptop");
> > + res = add_to_attr_set(hotkey_dev_attributes,
> > + &dev_attr_hotkey_tablet_mode.a
> > ttr);
> > + }
Ehh... the code doesn't act as if it were a "possible" switch, but
rather that it _did_ find a x1_yoga-style switch, so the debug message
should be assertive to match the code:
pr_info("Tablet mode switch found (X1 Yoga style), Thinkpad is in...")
or something to that effect.
If the code is wrong, and it has false possitives, we enhance the
detection (possibly by using a quirk table if we must).
Care to respin with that change?
--
Henrique Holschuh
next prev parent reply other threads:[~2016-10-27 17:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-25 22:12 [PATCH] thinkpad_acpi: Add support for X1 Yoga (2016) Tablet Mode Lyude
[not found] ` <1477433543-14915-1-git-send-email-lyude-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-10-27 14:52 ` Lyude Paul
2016-10-27 17:54 ` Henrique de Moraes Holschuh [this message]
2016-10-27 19:46 ` [PATCH v2] " Lyude
2016-11-05 18:45 ` Darren Hart
2016-11-05 18:49 ` Henrique de Moraes Holschuh
2016-11-05 18:55 ` Darren Hart
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=20161027175404.GA25503@khazad-dum.debian.net \
--to=hmh@hmh.eng.br \
--cc=dvhart@infradead.org \
--cc=ibm-acpi-devel@lists.sourceforge.net \
--cc=ibm-acpi@hmh.eng.br \
--cc=linux-kernel@vger.kernel.org \
--cc=lyude@redhat.com \
--cc=platform-driver-x86@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox