Re: [PATCH] intel-vbtn: new driver for Intel Virtual Button

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>:
> > 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
--
To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux