Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1213604 > unrolled thread
| Started by | Darren Hart <dvhart@infradead.org> |
|---|---|
| First post | 2015-08-26 09:30 +0200 |
| Last post | 2015-09-03 21:30 +0200 |
| Articles | 5 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] [v4] surface pro 3: Add support driver for Surface Pro 3 buttons Darren Hart <dvhart@infradead.org> - 2015-08-26 09:30 +0200
Re: [PATCH] [v4] surface pro 3: Add support driver for Surface Pro 3 buttons Joe Perches <joe@perches.com> - 2015-08-26 14:10 +0200
Re: [PATCH] [v4] surface pro 3: Add support driver for Surface Pro 3 buttons Darren Hart <dvhart@infradead.org> - 2015-08-28 20:00 +0200
Re: [PATCH] [v4] surface pro 3: Add support driver for Surface Pro 3 buttons Josh Boyer <jwboyer@fedoraproject.org> - 2015-09-01 19:40 +0200
Re: [PATCH] [v4] surface pro 3: Add support driver for Surface Pro 3 buttons Darren Hart <dvhart@infradead.org> - 2015-09-03 21:30 +0200
| From | Darren Hart <dvhart@infradead.org> |
|---|---|
| Date | 2015-08-26 09:30 +0200 |
| Subject | Re: [PATCH] [v4] surface pro 3: Add support driver for Surface Pro 3 buttons |
| Message-ID | <q1DjI-7nv-13@gated-at.bofh.it> |
On Tue, Aug 18, 2015 at 11:30:25PM +0800, Chen Yu wrote: > Since Surface Pro 3 does not follow the specs of "Windows ACPI Design > Guide for SoC Platform", code in drivers/input/misc/soc_array.c can > not detect these buttons on it. According to bios implementation, > Surface Pro 3 encapsulates these buttons in a device named "VGBI", > with _HID "MSHW0028". When any of the buttons is pressed, a specify > ACPI notification code for this button will be delivered to "VGBI". For > example, if power button is pressed down, ACPI notification code of 0xc6 > will be sent by Notify(VGBI, 0xc6). > > This patch leverages "VGBI" to distinguish different ACPI notification > code from Power button, Home button, Volume button, then dispatches these > code to input layer. Lid is already covered by acpi button driver, so > there's no need to rewrite. > > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=84651 > Tested-by: Ethan Schoonover <es@ethanschoonover.com> > Tested-by: Peter Amidon <psa.pub.0@picnicpark.org> > Tested-by: Donavan Lance <tusklahoma@gmail.com> > Tested-by: Stephen Just <stephenjust@gmail.com> > Signed-off-by: Chen Yu <yu.c.chen@intel.com> Joe, you provided a lot of review, are you happy with this version? Rafael, any concerns over the justification to use ACPI instead of platform_driver/i2c_driver as described in the comment block below? Chen, a couple more nitpics below. No need to resend if Joe and Rafael have no objections. I'll correct and queue. For now, queued to testing. Thanks! > --- > v4: > - Add following code in driver's probe callback: > if (strncmp(acpi_device_bid(device), SURFACE_BUTTON_OBJ_NAME, > strlen(SURFACE_BUTTON_OBJ_NAME))) > return -ENODEV; > to make sure only device object name of 'VGBI' will load this driver. > Because it is reported that, Surface 3(no Pro) also has a device with > hid MSHW0028, but it is not a button device. > > v3: > - Revert handle_surface_button_notify and keep original > 'switch/case' in surface_button_notify. Add/fix some > comments for surface_button_notify. > > v2: > - Introduce MACRO handle_surface_button_notify to make > it pairing the PRESS and RELEASE cases, convert dev_info > to dev_info_ratelimited when in error condition. > > --- > MAINTAINERS | 5 + > drivers/platform/x86/Kconfig | 5 + > drivers/platform/x86/Makefile | 1 + > drivers/platform/x86/surfacepro3_button.c | 215 ++++++++++++++++++++++++++++++ > 4 files changed, 226 insertions(+) > create mode 100644 drivers/platform/x86/surfacepro3_button.c > > diff --git a/MAINTAINERS b/MAINTAINERS > index 569568f..eacaa41 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -6721,6 +6721,11 @@ T: git git://git.monstr.eu/linux-2.6-microblaze.git > S: Supported > F: arch/microblaze/ > > +MICROSOFT SURFACE PRO 3 BUTTON DRIVER > +M: Chen Yu <yu.c.chen@intel.com> It's typical to include the list here as well: L: platform-driver-x86@vger.kernel.org > +S: Supported > +F: drivers/platform/x86/surfacepro3_button.c Also, spaces should have been tabs to be consistent with existing whitespace usage in MAINTAINERS. Consider displaying whitespace in your editor if you don't already. > + > MICROTEK X6 SCANNER > M: Oliver Neukum <oliver@neukum.org> > S: Maintained > diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig > index 6dc13e4..c69bb70 100644 > --- a/drivers/platform/x86/Kconfig > +++ b/drivers/platform/x86/Kconfig > @@ -919,4 +919,9 @@ config INTEL_PMC_IPC > The PMC is an ARC processor which defines IPC commands for communication > with other entities in the CPU. > > +config SURFACE_PRO3_BUTTON > + tristate "Power/home/volume buttons driver for Microsoft Surface Pro 3 tablet" > + depends on ACPI && INPUT > + ---help--- > + This driver handles the power/home/volume buttons on the Microsoft Surface Pro 3 tablet. > endif # X86_PLATFORM_DEVICES > diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile > index dda95a9..ada5128 100644 > --- a/drivers/platform/x86/Makefile > +++ b/drivers/platform/x86/Makefile > @@ -60,3 +60,4 @@ obj-$(CONFIG_INTEL_SMARTCONNECT) += intel-smartconnect.o > obj-$(CONFIG_PVPANIC) += pvpanic.o > obj-$(CONFIG_ALIENWARE_WMI) += alienware-wmi.o > obj-$(CONFIG_INTEL_PMC_IPC) += intel_pmc_ipc.o > +obj-$(CONFIG_SURFACE_PRO3_BUTTON) += surfacepro3_button.o > diff --git a/drivers/platform/x86/surfacepro3_button.c b/drivers/platform/x86/surfacepro3_button.c > new file mode 100644 > index 0000000..6c6f11c > --- /dev/null > +++ b/drivers/platform/x86/surfacepro3_button.c > @@ -0,0 +1,215 @@ > +/* > + * power/home/volume button support for > + * Microsoft Surface Pro 3 tablet. > + * > + * (C) Copyright 2015 Intel Corporation Intel standard copyright notice: Copyright (c) 2015, Intel Corporation. All rights reserved. But the (c) generally always goes after Copyright -- Darren Hart Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Joe Perches <joe@perches.com> |
|---|---|
| Date | 2015-08-26 14:10 +0200 |
| Subject | Re: [PATCH] [v4] surface pro 3: Add support driver for Surface Pro 3 buttons |
| Message-ID | <q1HGH-5gu-37@gated-at.bofh.it> |
| In reply to | #1213604 |
On Wed, 2015-08-26 at 00:22 -0700, Darren Hart wrote: > On Tue, Aug 18, 2015 at 11:30:25PM +0800, Chen Yu wrote: > > Since Surface Pro 3 does not follow the specs of "Windows ACPI Design > > Guide for SoC Platform", code in drivers/input/misc/soc_array.c can > > not detect these buttons on it. According to bios implementation, > > Surface Pro 3 encapsulates these buttons in a device named "VGBI", > > with _HID "MSHW0028". When any of the buttons is pressed, a specify > > ACPI notification code for this button will be delivered to "VGBI". For > > example, if power button is pressed down, ACPI notification code of 0xc6 > > will be sent by Notify(VGBI, 0xc6). [] > Joe, you provided a lot of review, are you happy with this version? It looks fine. Thanks for picking the other little nits too Darren. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Darren Hart <dvhart@infradead.org> |
|---|---|
| Date | 2015-08-28 20:00 +0200 |
| Message-ID | <q2w6u-21Z-21@gated-at.bofh.it> |
| In reply to | #1213775 |
On Wed, Aug 26, 2015 at 05:04:01AM -0700, Joe Perches wrote: > On Wed, 2015-08-26 at 00:22 -0700, Darren Hart wrote: > > On Tue, Aug 18, 2015 at 11:30:25PM +0800, Chen Yu wrote: > > > Since Surface Pro 3 does not follow the specs of "Windows ACPI Design > > > Guide for SoC Platform", code in drivers/input/misc/soc_array.c can > > > not detect these buttons on it. According to bios implementation, > > > Surface Pro 3 encapsulates these buttons in a device named "VGBI", > > > with _HID "MSHW0028". When any of the buttons is pressed, a specify > > > ACPI notification code for this button will be delivered to "VGBI". For > > > example, if power button is pressed down, ACPI notification code of 0xc6 > > > will be sent by Notify(VGBI, 0xc6). > [] > > Joe, you provided a lot of review, are you happy with this version? > > It looks fine. > > Thanks for picking the other little nits too Darren. This is not queued for next. -- Darren Hart Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Josh Boyer <jwboyer@fedoraproject.org> |
|---|---|
| Date | 2015-09-01 19:40 +0200 |
| Subject | Re: [PATCH] [v4] surface pro 3: Add support driver for Surface Pro 3 buttons |
| Message-ID | <q3XHl-4Ux-37@gated-at.bofh.it> |
| In reply to | #1215486 |
On Fri, Aug 28, 2015 at 1:56 PM, Darren Hart <dvhart@infradead.org> wrote: > On Wed, Aug 26, 2015 at 05:04:01AM -0700, Joe Perches wrote: >> On Wed, 2015-08-26 at 00:22 -0700, Darren Hart wrote: >> > On Tue, Aug 18, 2015 at 11:30:25PM +0800, Chen Yu wrote: >> > > Since Surface Pro 3 does not follow the specs of "Windows ACPI Design >> > > Guide for SoC Platform", code in drivers/input/misc/soc_array.c can >> > > not detect these buttons on it. According to bios implementation, >> > > Surface Pro 3 encapsulates these buttons in a device named "VGBI", >> > > with _HID "MSHW0028". When any of the buttons is pressed, a specify >> > > ACPI notification code for this button will be delivered to "VGBI". For >> > > example, if power button is pressed down, ACPI notification code of 0xc6 >> > > will be sent by Notify(VGBI, 0xc6). >> [] >> > Joe, you provided a lot of review, are you happy with this version? >> >> It looks fine. >> >> Thanks for picking the other little nits too Darren. > > This is not queued for next. Not or now? If not, why not? josh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Darren Hart <dvhart@infradead.org> |
|---|---|
| Date | 2015-09-03 21:30 +0200 |
| Message-ID | <q4ImS-4s7-27@gated-at.bofh.it> |
| In reply to | #1216993 |
On Tue, Sep 01, 2015 at 01:30:27PM -0400, Josh Boyer wrote: > On Fri, Aug 28, 2015 at 1:56 PM, Darren Hart <dvhart@infradead.org> wrote: > > On Wed, Aug 26, 2015 at 05:04:01AM -0700, Joe Perches wrote: > >> On Wed, 2015-08-26 at 00:22 -0700, Darren Hart wrote: > >> > On Tue, Aug 18, 2015 at 11:30:25PM +0800, Chen Yu wrote: > >> > > Since Surface Pro 3 does not follow the specs of "Windows ACPI Design > >> > > Guide for SoC Platform", code in drivers/input/misc/soc_array.c can > >> > > not detect these buttons on it. According to bios implementation, > >> > > Surface Pro 3 encapsulates these buttons in a device named "VGBI", > >> > > with _HID "MSHW0028". When any of the buttons is pressed, a specify > >> > > ACPI notification code for this button will be delivered to "VGBI". For > >> > > example, if power button is pressed down, ACPI notification code of 0xc6 > >> > > will be sent by Notify(VGBI, 0xc6). > >> [] > >> > Joe, you provided a lot of review, are you happy with this version? > >> > >> It looks fine. > >> > >> Thanks for picking the other little nits too Darren. > > > > This is not queued for next. > > Not or now? If not, why not? Sorry, typo :-) It is queued for next, you'll find it in my "for-next" branch as well as in linux-next currently. -- Darren Hart Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web