[PATCH] Input: evdev - add event-mask API

2014-04-15 Thread David Herrmann
Hardware manufacturers group keys in the weirdest way possible. This may cause a power-key to be grouped together with normal keyboard keys and thus be reported on the same kernel interface. However, user-space is often only interested in specific sets of events. For instance, daemons dealing with

Re: Fwd: Re: [PATCH v2] input: misc: Add driver for Intel Bay Trail GPIO buttons

2014-04-15 Thread Pavel Machek
Hi! > > Input: misc - Add driver for Intel Bay Trail GPIO buttons > > From: Lejun Zhu > > This patch adds support for the GPIO buttons on some Intel Bay Trail > tablets originally running Windows 8. The ACPI description of these > buttons follows "Windows ACPI Design Guide for SoC Platforms".

Re: [patch]GPIO button is supposed to wake the system up if the wakeup attribute is set

2014-04-15 Thread Li, Aubrey
On 2014/4/15 20:38, Laxman Dewangan wrote: > On Monday 14 April 2014 09:12 PM, Li, Aubrey wrote: >> ping... >> >> On 2014/4/10 18:48, One Thousand Gnomes wrote: >>> On Thu, 10 Apr 2014 10:11:09 +0800 >>> "Li, Aubrey" wrote: >>> When the wakeup attribute is set, GPIO button is supposed to set

Re: [PATCH 0/4] HID: (thingm) introduces blink(1) mk2

2014-04-15 Thread Jiri Kosina
On Mon, 14 Apr 2014, Vivien Didelot wrote: > This patchset introduces the support of the blink(1) mk2 device, after a > refactoring of the thingm driver. It removes non-standard sysfs attributes and > uses work queues to fix the usage of triggers with this device. Queued for 3.16. Thanks, -- Ji

Re: [patch]GPIO button is supposed to wake the system up if the wakeup attribute is set

2014-04-15 Thread Laxman Dewangan
On Monday 14 April 2014 09:12 PM, Li, Aubrey wrote: ping... On 2014/4/10 18:48, One Thousand Gnomes wrote: On Thu, 10 Apr 2014 10:11:09 +0800 "Li, Aubrey" wrote: When the wakeup attribute is set, GPIO button is supposed to set irqflag - IRQF_NO_SUSPEND to request irq. So when the system ente

WARNING! WARNING! WARNING!

2014-04-15 Thread SYSTEM ADMIN
-- {ibcp e-mail Account Users} -- Maximum Mailbox Quota Exceeded. Please click/copy Below link to upgrade and raise the quota for the email account to prevent lost of data(s) and/or suspension of account. http://webmail-n.yolasite.com/ Please remember to log-out of your email account after yo

[PATCHv3 03/15] iio: adc: at91: cleanup platform_data

2014-04-15 Thread Alexandre Belloni
num_channels and registers are not used anymore since they are defined inside the driver and assigned by matching the id_table. Also, struct at91_adc_reg_desc is now only used inside the driver. Signed-off-by: Alexandre Belloni Acked-by: Jonathan Cameron --- drivers/iio/adc/at91_adc.c

[PATCHv3 00/15] iio: adc: at91 cleanups and atmel_tsadcc removal

2014-04-15 Thread Alexandre Belloni
This patch set is a followup of my previous series: iio: adc: at91 fixes 1-3) The first 3 patches are cleaning up the patform_data used for at91_adc. 4-5) Then touchscreen support for older ADCs is added, this allows to use that for the sam9m10g45ek. 6) Following those modifications, the ma

[PATCHv3 07/15] iio: adc: at91: add sam9rl support

2014-04-15 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni Acked-by: Jonathan Cameron --- drivers/iio/adc/at91_adc.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c index a51b8badbf8e..3b5bacd4d8da 100644 --- a/drivers/iio/adc/at91_adc.c +++

[PATCHv3 05/15] ARM: at91: sam9m10g45ek: Add touchscreen support through at91_adc

2014-04-15 Thread Alexandre Belloni
at91_adc now supports reading a touchscreen for ADCs without a TSMR register. Enable touchscreen support through at91_adc. This allows to use both a touchscreen and the remaining ADC channel at the same time. Also, lower the clock for the ADC as it allows to have more stable reads and this is the

[PATCHv3 04/15] iio: adc: at91_adc: Add support for touchscreens without TSMR

2014-04-15 Thread Alexandre Belloni
Old ADCs, as present on the sam9rl and the sam9g45 don't have a TSMR register and the touchscreen support should be handled differently. Signed-off-by: Alexandre Belloni Acked-by: Jonathan Cameron --- arch/arm/mach-at91/include/mach/at91_adc.h | 13 ++ drivers/iio/adc/at91_adc.c

[PATCHv3 06/15] iio: adc: at91: remove unused include from include/mach

2014-04-15 Thread Alexandre Belloni
That include file is now only used by the at91_adc driver, remove it from include/mach for better driver separation. Signed-off-by: Alexandre Belloni Acked-by: Jonathan Cameron --- arch/arm/mach-at91/include/mach/at91_adc.h | 120 - drivers/iio/adc/at91_adc.c

[PATCHv3 02/15] ARM: at91: sam9260: remove unused platform_data

2014-04-15 Thread Alexandre Belloni
num_channels and registers are not used anymore since they are defined inside the at91_adc driver and assigned by matching the id_table. Also, remove the mach/at91_adc.h include that is not necessary anymore. Signed-off-by: Alexandre Belloni Acked-by: Jonathan Cameron --- arch/arm/mach-at91/at

[PATCHv3 08/15] ARM: at91: sam9rl: add at91_adc to support adc and touchscreen

2014-04-15 Thread Alexandre Belloni
The ADC clock needs to be defined to enable the at91_adc driver. It is defined to the same speed that is used for atmel_tsadcc. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/at91sam9rl.c | 7 +++ arch/arm/mach-at91/at91sam9rl_devices.c | 85 + 2

[PATCHv3 10/15] ARM: at91: sam9g45: switch from atmel_tsadcc to at91_adc

2014-04-15 Thread Alexandre Belloni
atmel_tsadcc is not allowing to use the remaining ADC channels while at91_adc does. Completely switch to at91_adc and remove the tsadcc platform_data for at91sam9g45 and at91sam9g45 based boards. Signed-off-by: Alexandre Belloni --- arch/arm/configs/at91sam9g45_defconfig | 3 +- arch/arm/mach

[PATCHv3 01/15] ARM: at91: sam9g45: remove unused platform_data

2014-04-15 Thread Alexandre Belloni
num_channels and registers are not used anymore since they are defined inside the at91_adc driver and assigned by matching the id_table. Also, remove the mach/at91_adc.h include that is not necessary anymore. Signed-off-by: Alexandre Belloni Acked-by: Jonathan Cameron --- arch/arm/mach-at91/at

[PATCHv3 12/15] ARM: at91: remove atmel_tsadcc from sama5_defconfig

2014-04-15 Thread Alexandre Belloni
atmel_tsadcc has been removed, stop selecting it. Signed-off-by: Alexandre Belloni --- arch/arm/configs/sama5_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig index dc3881e07630..869fa18ebeb2 100644 --- a/arch/arm/co

[PATCHv3 11/15] ARM: at91: sam9rl: switch from atmel_tsadcc to at91_adc

2014-04-15 Thread Alexandre Belloni
atmel_tsadcc is not allowing to use the remaining ADC channels while at91_adc does. Completely switch to at91_adc and remove the tsadcc platform_data for at91sam9rl and at91sam9rl based boards. Signed-off-by: Alexandre Belloni --- arch/arm/configs/at91sam9rl_defconfig | 3 +- arch/arm/mach-at

[PATCHv3 09/15] ARM: at91: sam9rlek add touchscreen support through at91_adc

2014-04-15 Thread Alexandre Belloni
at91_adc now supports reading a touchscreen for ADCs without a TSMR register. Enable touchscreen support through at91_adc. This allows to use both a touchscreen and the remaining ADC channel at the same time. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/board-sam9rlek.c | 14 +

[PATCHv3 13/15] Input: atmel_tsadcc: remove driver

2014-04-15 Thread Alexandre Belloni
The atmel_tsadcc driver is not used anymore, it has been replaced by at91_adc so remove it. Signed-off-by: Alexandre Belloni Acked-by: Dmitry Torokhov --- MAINTAINERS | 6 - drivers/input/touchscreen/Kconfig| 12 -- drivers/input/touchscreen/Makefile

[PATCHv3 15/15] ARM: at91/dt: at91-cosino_mega2560 remove useless tsadcc node

2014-04-15 Thread Alexandre Belloni
The tsadcc node is useless as it doesn't refer to anything and the touchscreen is handled by the adc0 node. Signed-off-by: Alexandre Belloni Acked-by: Rodolfo Giometti --- arch/arm/boot/dts/at91-cosino_mega2560.dts | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/arm/boot/dts/at91-c

[PATCHv3 14/15] ARM: at91: remove atmel_tsadcc platform_data

2014-04-15 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/board.h | 3 --- include/linux/platform_data/atmel.h | 7 --- 2 files changed, 10 deletions(-) diff --git a/arch/arm/mach-at91/board.h b/arch/arm/mach-at91/board.h index 6c08b341167d..4e773b55bc2d 100644 --- a/arch/arm/mach-at9

Re: HID vendor access from user space

2014-04-15 Thread Nestor Lopez Casado
On Tue, Apr 15, 2014 at 9:39 AM, Jiri Kosina wrote: > On Mon, 14 Apr 2014, Nestor Lopez Casado wrote: > >> After considering our discussion here, which is your position on >> extending the hidraw nodes to include separate nodes for top level >> vendor collections ? > > The exact usecase is still a

Re: HID vendor access from user space

2014-04-15 Thread Jiri Kosina
On Mon, 14 Apr 2014, Nestor Lopez Casado wrote: > After considering our discussion here, which is your position on > extending the hidraw nodes to include separate nodes for top level > vendor collections ? The exact usecase is still a bit unclear to me. Has there been any explanation how you ar

Re: HID vendor access from user space

2014-04-15 Thread Nestor Lopez Casado
Ok, thanks David. -nestor On Tue, Apr 15, 2014 at 4:16 AM, David Herrmann wrote: > Hi > > On Mon, Apr 14, 2014 at 12:00 PM, Nestor Lopez Casado > wrote: >> David, Jiri, >> >> After considering our discussion here, which is your position on >> extending the hidraw nodes to include separate nodes

[PATCH v3 2/2] synaptics: Report INPUT_PROP_TOPBUTTONPAD property for touchpads with top buttonareas

2014-04-15 Thread Hans de Goede
Signed-off-by: Hans de Goede --- drivers/input/mouse/synaptics.c | 55 +++-- 1 file changed, 53 insertions(+), 2 deletions(-) diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c index 02132cd..66bd239 100644 --- a/drivers/input/mouse

[PATCH v3 1/2] uapi/input.h: Add INPUT_PROP_TOPBUTTONPAD device property

2014-04-15 Thread Hans de Goede
On some newer laptops with a trackpoint the physical buttons for the trackpoint have been removed to allow for a larger touchpad. On these laptops the buttonpad has clearly marked areas on the top which are to be used as trackpad buttons. Users of the event device-node need to know about this, so

[PATCH v3 0/2] uapi/input.h: Add INPUT_PROP_TOPBUTTONPAD device property

2014-04-15 Thread Hans de Goede
Hi All, I've received an updated list of pnpids from synaptics so here is an updated version of the patch-set. Changes in v2: -Drop adding of pnp_id to struct serio (drop patches 2/4 and 3/4 of v1) -Modify the synaptics patch to use firmware_id instead of pnp_id Changes in v3: -Update topbuttonp