All of lore.kernel.org
 help / color / mirror / Atom feed
From: Darren Hart <dvhart@infradead.org>
To: AceLan Kao <acelan.kao@canonical.com>
Cc: Rafael Wysocki <rjw@rjwysocki.net>,
	"platform-driver-x86@vger.kernel.org"
	<platform-driver-x86@vger.kernel.org>,
	Alex Hung <alex.hung@canonical.com>
Subject: Re: [PATCH] intel-vbtn: new driver for Intel Virtual Button
Date: Thu, 7 Jul 2016 15:01:42 -0700	[thread overview]
Message-ID: <20160707220142.GA3927@f23x64.localdomain> (raw)
In-Reply-To: <CAFv23Qmtz+HcpuWtmhBB+7gMhEBaWWDqzFNmzGmbuntBzE79FA@mail.gmail.com>

On Thu, Jul 07, 2016 at 10:15:38AM +0800, AceLan Kao wrote:
> Hi Darren,
> 
> I reply your questions in-line.
> 
> 2016-07-07 3:58 GMT+08:00 Darren Hart <dvhart@infradead.org>:
> > On Mon, Jul 04, 2016 at 09:25:06AM +0800, AceLan Kao wrote:
> >> Hi Darren,
> >>
> >>
> >> This is the DSDT table from my machine,
> >> and this is the first time we have the machine which enabled virtual
> >> button feature.
> >>
> >> I've granted the permission to upstream the driver,
> >> our contact window is Zhang, Xiong Y from Intel.
> >
> > Thanks AceLan,
> >
> > A few questions.
> >
> > Which specific Dell XPS 13 are you using? Which model is reported via dmidecode?
> >
> > Which firmware version is it (also dmidecode)?
> For the above 2 questions, this is the latest model we are working on,
> and for the sake of confidential, I can't reveal its model name and/or
> other info to the public.
> 

I see, that might explain why it isn't present in the DSDT on my Skylake XPS 13.

> >
> > Your DSDT suggests the INT33D6 is only advertised to the OS if the OSYS variable
> > is >= 0x7DD, the value for "Windows 2013" set in _INI. Are you passing acpi_osi=
> > to the Linux kernel?
> No, we don't pass acpi_osi on most of our projects.
> 
> >
> > Given the similarities of this driver and the intel-hid driver, I wonder if
> > there is a possibility to augment the intel-hid driver to support this one
> > additional hotkey?. There are two ACPI object eval calls we would have to
> > special case and also decide how to deal with the suspend/resume handling
> > intel-hid employs, but otherwise, these drivers appear to do the same exact
> > thing.
> >
> > Rafael, we have a number of drivers in this subsystem which match on multiple
> > ACPI IDs. Any general guidance on the preference for one driver per HID versus
> > killing all the boilerplate and special casing a couple of things in a single
> > driver for two or more HIDs?
> >
> > Alex, AceLan, what was your motivation to do this as a new driver rather than
> > augmenting intel-hid?
> Yes, intel-vbtn and intel-hid do almost the same thing, but intel-vbtn
> use event code
> passed from notification handler to do his job
> (no need to use ACPI function to retrieve the event value),
> and the event code conflicts with the usage in intel-hid.
> ex. event code = 0xc0 in intel-vbtn is power button has been pressed,
>                      in intel-hid is used to checking the valid event
> And I believe we'll need a sysfs interface for user to configure the
> keyevent report by intel-vbtn,
> on tablet/phone, we will want to suspend directly while pressing the
> power button,
> and on laptop, we just need it behaves as a traditional power button.
> It's more clean/simple to have a standalone driver to handle this.
> 

Thanks for the clarification. I've queued this patch to testing for 4.8.

-- 
Darren Hart
Intel Open Source Technology Center

      parent reply	other threads:[~2016-07-07 22:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-01  1:51 [PATCH] intel-vbtn: new driver for Intel Virtual Button AceLan Kao
2016-07-01 21:49 ` Darren Hart
     [not found]   ` <CAMz9Wg9JpS7zdNQZ=Z-mO12Mtz8N-rX-GpWbuF3+ZtDHkiT=bQ@mail.gmail.com>
     [not found]     ` <20160706195824.GB66341@f23x64.localdomain>
     [not found]       ` <CAFv23Qmtz+HcpuWtmhBB+7gMhEBaWWDqzFNmzGmbuntBzE79FA@mail.gmail.com>
2016-07-07 22:01         ` Darren Hart [this message]

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=20160707220142.GA3927@f23x64.localdomain \
    --to=dvhart@infradead.org \
    --cc=acelan.kao@canonical.com \
    --cc=alex.hung@canonical.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    /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.