[PATCH] Input: Add support for CLOCK_BOOTTIME

2014-12-16 Thread Aniroop
From: Aniroop Mathur This patch adds support for CLOCK_BOOTTIME for input event timestamp. CLOCK_BOOTTIME includes suspend time, so it would allow applications to get correct time difference between two events even when system resumes from suspend state. Signed-off-by: Aniroop Mathur --- drive

Re: [PATCH v4 0/6] Touchscreen performance related fixes

2014-12-16 Thread Catalin Crenguta
On Fri, Dec 12, 2014 at 4:16 PM, Griffis, Brad wrote: > How are you configuring ti,charge-delay in your dts? I've seen this behavior > on some custom boards where we were using a smaller charge delay (0x400) to > begin with, and by upping it to 0xb000 we resolved the issue. These patches > ho

Re: The return value of hid_input_report and raw_event

2014-12-16 Thread Jiri Kosina
On Mon, 15 Dec 2014, Peter Wu wrote: > Hi Jiri and list, > > The HID core has a hid_input_report function which returns an integer, > but all its callers are not really changing their behavior based on the > return value. The few^Wonly exception that does not completely ignore > the return value

Re: [PATCHv3 3/5] ARM: sunxi: dts: Add PS2 nodes to dtsi for A10 and A20

2014-12-16 Thread Maxime Ripard
Hi Vishnu, On Fri, Dec 12, 2014 at 11:55:46PM +0530, VishnuPatekar wrote: > 1) Fixup the sun4i ps/2 nodes interrupt property, sun4i interrupts take > only 1 specifier > > 2) dt bindings should use the compat string for the earliest version of the > hardware which has the relevant hardware block,

Re: [PATCH 1/7] input: alps: Set correct name of psmouse device in alps_init()

2014-12-16 Thread Pali Rohár
On Tuesday 16 December 2014 06:02:34 Dmitry Torokhov wrote: > Hi Pali, > > On Fri, Nov 14, 2014 at 08:38:20PM +0100, Pali Rohár wrote: > > On some laptops after starting them from off state (not > > after reboot), function alps_probe_trackstick_v3() (called > > from function alps_identify()) does

Re: [PATCH v15 09/12] input: cyapa: add gen5 trackpad device firmware update function support

2014-12-16 Thread Jeremiah Mahler
Dudley, On Mon, Dec 15, 2014 at 02:23:20PM +0800, Dudley Du wrote: > Add firmware image update function supported for gen5 trackpad device, > it can be used through sysfs update_fw interface. > TEST=test on Chromebooks. > > Signed-off-by: Dudley Du > --- > drivers/input/mouse/Kconfig | 1

Re: [PATCH 1/3] HID: logitech-hidpp: detect HID++ 2.0 errors too

2014-12-16 Thread Benjamin Tissoires
Hi Peter, On Mon, Dec 15, 2014 at 7:50 PM, Peter Wu wrote: > Devices speaking HID++ 2.0 report a different error code (0xff). Detect > these errors too to avoid 5 second delays when the device reports an > error. Caught by... well, a bug in the QEMU emulation of this receiver. > > Renamed fap to

Re: [PATCH 1/3] HID: logitech-hidpp: detect HID++ 2.0 errors too

2014-12-16 Thread Peter Wu
On Tuesday 16 December 2014 09:33:44 Benjamin Tissoires wrote: > On Mon, Dec 15, 2014 at 7:50 PM, Peter Wu wrote: > > Devices speaking HID++ 2.0 report a different error code (0xff). Detect > > these errors too to avoid 5 second delays when the device reports an > > error. Caught by... well, a bug

Re: [PATCH 2/3] HID: logitech-{dj,hidpp}: check report length

2014-12-16 Thread Benjamin Tissoires
Hi Peter, On Mon, Dec 15, 2014 at 7:50 PM, Peter Wu wrote: > Malicious USB devices can send bogus reports smaller than the expected > buffer size. Ensure that the length is valid to avoid reading out of > bounds. > > For the old WTP, I do not have a HID descriptor so just check for the > minimum

Re: [PATCH 3/3] HID: logitech-hidpp: avoid unintended fall-through

2014-12-16 Thread Benjamin Tissoires
On Mon, Dec 15, 2014 at 7:50 PM, Peter Wu wrote: > Add a return to avoid a fall-through. Introduced in commit > 57ac86cf52e903d9e3e0f12b34c814cce6b65550 ("HID: logitech-hidpp: add > support of the first Logitech Wireless Touchpad"). > > Signed-off-by: Peter Wu > --- This one is reviewed-by: Benj

Re: [PATCH 2/3] HID: logitech-{dj,hidpp}: check report length

2014-12-16 Thread Peter Wu
On Tuesday 16 December 2014 09:53:07 Benjamin Tissoires wrote: > On Mon, Dec 15, 2014 at 7:50 PM, Peter Wu wrote: > > Malicious USB devices can send bogus reports smaller than the expected > > buffer size. Ensure that the length is valid to avoid reading out of > > bounds. > > > > For the old WTP,

Re: [PATCHv3 5/5] ARM: sunxi: dts: Add note ps2 pins conflict with hdmi

2014-12-16 Thread Chen-Yu Tsai
Hi, On Sat, Dec 13, 2014 at 11:18 AM, Vishnu Patekar wrote: > Hello Chen-Yu, > Thank you for pointing out styling error. > > On Sat, Dec 13, 2014 at 7:36 AM, Chen-Yu Tsai wrote: >> >> Hi, >> >> On Sat, Dec 13, 2014 at 2:25 AM, VishnuPatekar >> wrote: >> > 1. Please note that ps20 pins conflict

Re: [PATCH v4 0/6] Touchscreen performance related fixes

2014-12-16 Thread Richard Cochran
On Tue, Dec 16, 2014 at 10:31:47AM +0200, Catalin Crenguta wrote: > > It seems that because the ribbon cable has both the analog and digital > signals, the analog signals are affected by the digital ones (hence > the touchscreen was working OK when the display was disabled). Putting > decoupling c

[RFC PATCH] fixp-arith: replace sin/cos table by a better precision one

2014-12-16 Thread Mauro Carvalho Chehab
The cos table used at fixp-arith.h has only 8 bits of precision. That causes problems if it is reused on other drivers. As some media drivers require a higher precision sin/cos implementation, replace the current implementation by one that will provide 32 bits precision. The values generated by t

[PATCH] hid: Add battery quirk for USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_ISO keyboard

2014-12-16 Thread Karl Relton
Apple bluetooth wireless keyboard (sold in UK) has always reported zero for battery strength no matter what condition the batteries are actually in. With this patch applied (applying same quirk as other Apple keyboards), the battery strength is now correctly reported. Signed-off-by: Karl Relton -

Re: [PATCH 2/3] HID: logitech-{dj,hidpp}: check report length

2014-12-16 Thread Benjamin Tissoires
On Tue, Dec 16, 2014 at 10:20 AM, Peter Wu wrote: > On Tuesday 16 December 2014 09:53:07 Benjamin Tissoires wrote: >> On Mon, Dec 15, 2014 at 7:50 PM, Peter Wu wrote: >> > Malicious USB devices can send bogus reports smaller than the expected >> > buffer size. Ensure that the length is valid to a

[PATCH v2 2/3] HID: logitech-hidpp: check WTP report length

2014-12-16 Thread Peter Wu
Malicious USB devices can send bogus reports smaller than the expected buffer size. Ensure that the length for WTP reports is valid to avoid reading out of bounds. Signed-off-by: Peter Wu --- v1: patch 2/3 HID: logitech-{dj,hidpp}: check report length v2: splitted original report length check p

[PATCH v2 3/3] HID: logitech-hidpp: separate HID++ from WTP processing

2014-12-16 Thread Peter Wu
Previously wtp_raw_event would be called through hidpp_raw_hidpp_event (for the touchpad report) and hidpp_raw_event (for the mouse report). This patch removes one calling surface, making a clearer distinction between "generic HID++ processing" (matching internal reports) and device-specific event

[PATCH v2 1/3] HID: logitech-dj: check report length

2014-12-16 Thread Peter Wu
Malicious USB devices can send bogus reports smaller than the expected buffer size. Ensure that the length is valid to avoid reading out of bounds. Signed-off-by: Peter Wu --- v1: patch 2/3 HID: logitech-{dj,hidpp}: check report length v2: splitted original report length check patch --- driver

Re: [PATCH 0/2] Input: atmel_mxt_ts - Add support for T100 multi-touch

2014-12-16 Thread Nick Dyer
On 15/12/14 10:39, Javier Martinez Canillas wrote: > There are different multi-touch protocols used by Atmel maXTouch touchscreen > chips. Old chips use the T9 multi-touch object type while newer chips use the > T100 multi-touch object type. The Atmel touch driver currently only supports > the form

Re: [PATCH 0/2] Input: atmel_mxt_ts - Add support for T100 multi-touch

2014-12-16 Thread Javier Martinez Canillas
Hello Nick, On 12/16/2014 05:16 PM, Nick Dyer wrote: > On 15/12/14 10:39, Javier Martinez Canillas wrote: >> There are different multi-touch protocols used by Atmel maXTouch touchscreen >> chips. Old chips use the T9 multi-touch object type while newer chips use the >> T100 multi-touch object type

Re: [PATCH 0/2] Input: atmel_mxt_ts - Add support for T100 multi-touch

2014-12-16 Thread Nick Dyer
On 16/12/14 16:34, Javier Martinez Canillas wrote: > On 12/16/2014 05:16 PM, Nick Dyer wrote: >>> Nick Dyer (1): >>> Input: atmel_mxt_ts - Implement support for T100 touch object >> I posted an updated version of this patch on 9th December and would prefer >> you apply that rather than this versi

Re: [PATCH 0/2] Input: atmel_mxt_ts - Add support for T100 multi-touch

2014-12-16 Thread Javier Martinez Canillas
Hello Nick, On 12/16/2014 05:39 PM, Nick Dyer wrote: > On 16/12/14 16:34, Javier Martinez Canillas wrote: >> On 12/16/2014 05:16 PM, Nick Dyer wrote: Nick Dyer (1): Input: atmel_mxt_ts - Implement support for T100 touch object >>> I posted an updated version of this patch on 9th Decemb

[PATCH] Input: Add support for CLOCK_BOOTTIME

2014-12-16 Thread Aniroop Mathur
This patch adds support for CLOCK_BOOTTIME for input event timestamp. CLOCK_BOOTTIME includes suspend time, so it would allow aplications to get correct time difference between two events even when system resumes from suspend state. Signed-off-by: Aniroop Mathur --- drivers/input/evdev.c | 33 ++

Re: [PATCH 0/2] Input: atmel_mxt_ts - Add support for T100 multi-touch

2014-12-16 Thread Nick Dyer
On 16/12/14 16:49, Javier Martinez Canillas wrote: > Awesome, what do you think about the change to have a common input device > initialization function that I squashed in your original patch? > mxt_initialize_t100_input_device() and mxt_initialize_t9_input_device() > are very similar so I think th

[git pull] Input updates for 3.19-rc0

2014-12-16 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus or master.kernel.org:/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. You will get 2 new drivers ofr Elan hardware (for I2C touchpad an

Re: [PATCH 0/2] Input: atmel_mxt_ts - Add support for T100 multi-touch

2014-12-16 Thread Javier Martinez Canillas
Hello Nick, On 12/16/2014 06:07 PM, Nick Dyer wrote: > On 16/12/14 16:49, Javier Martinez Canillas wrote: >> Awesome, what do you think about the change to have a common input device >> initialization function that I squashed in your original patch? >> mxt_initialize_t100_input_device() and mxt_in

Re: [PATCH v15 09/12] input: cyapa: add gen5 trackpad device firmware update function support

2014-12-16 Thread Benson Leung
On Tue, Dec 16, 2014 at 5:56 AM, Jeremiah Mahler wrote: > On Mon, Dec 15, 2014 at 02:23:20PM +0800, Dudley Du wrote: >> Add firmware image update function supported for gen5 trackpad device, >> it can be used through sysfs update_fw interface. >> TEST=test on Chromebooks. >> >> Signed-off-by: Dudl

Re: [PATCH v2 1/3] HID: logitech-dj: check report length

2014-12-16 Thread Benjamin Tissoires
On Tue, Dec 16, 2014 at 10:55 AM, Peter Wu wrote: > Malicious USB devices can send bogus reports smaller than the expected > buffer size. Ensure that the length is valid to avoid reading out of > bounds. > > Signed-off-by: Peter Wu > --- > v1: patch 2/3 HID: logitech-{dj,hidpp}: check report len

Re: [PATCH v2 2/3] HID: logitech-hidpp: check WTP report length

2014-12-16 Thread Benjamin Tissoires
On Tue, Dec 16, 2014 at 10:55 AM, Peter Wu wrote: > Malicious USB devices can send bogus reports smaller than the expected > buffer size. Ensure that the length for WTP reports is valid to avoid > reading out of bounds. > > Signed-off-by: Peter Wu > --- > v1: patch 2/3 HID: logitech-{dj,hidpp}:

Re: [PATCH v2 3/3] HID: logitech-hidpp: separate HID++ from WTP processing

2014-12-16 Thread Benjamin Tissoires
On Tue, Dec 16, 2014 at 10:55 AM, Peter Wu wrote: > Previously wtp_raw_event would be called through > hidpp_raw_hidpp_event (for the touchpad report) and hidpp_raw_event > (for the mouse report). > > This patch removes one calling surface, making a clearer distinction > between "generic HID++ pro

[PATCH 1/2] HID: lenovo: Add sensitivity control to compact keyboards

2014-12-16 Thread Jamie Lentin
The trackpoint sensitivity can also be controlled, expose this via sysfs. Signed-off-by: Jamie Lentin --- drivers/hid/hid-lenovo.c | 42 +- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c in

[PATCH 2/2] HID: lenovo: Use native middle-button mode for compact keyboards

2014-12-16 Thread Jamie Lentin
By default the middle button is in a compatibility mode, and generates standard wheel events when dragging with the middle trackpoint button. Unfortunately this is buggy: * The middle button comes up before starting wheel events, causing a middle click on whatever the mouse cursor was sitting on

[PATCH 0/2] HID: lenovo: Extra features for compact keyboards

2014-12-16 Thread Jamie Lentin
Another set of patches for the Lenovo Compact Keyboards, enabling sensitivity control and improving scroll-wheel emulation. This applies to 3.18, once previous fixups[0] have been applied. Tested with USB and Bluetooth versions of the keyboard. Cheers, [0] https://lkml.org/lkml/2014/11/9/25 Jam

[PATCH 1/2] HID: logitech-hidpp: bail out if wtp_connect fails

2014-12-16 Thread Benjamin Tissoires
If wtp_connect() fails, that means most of the time that the device has been disconnected. Subsequent attempts to contact the device will fail too, so it's simpler to bail out earlier. Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-logitech-hidpp.c | 15 +-- 1 file changed, 9

[PATCH 2/2] HID: logitech-hidpp: store the name of the device in struct hidpp

2014-12-16 Thread Benjamin Tissoires
If a disconnect occurs while getting the actual name of the device (which can take several HID transactions), the name of the device will be the hid name, provided by the Unifying Receiver. This means that in some cases, the user space will see a different name that what it usually sees when there

Re: [PATCH 1/2] HID: logitech-hidpp: bail out if wtp_connect fails

2014-12-16 Thread Benjamin Tissoires
On Tue, Dec 16, 2014 at 5:06 PM, Benjamin Tissoires wrote: > If wtp_connect() fails, that means most of the time that the device has > been disconnected. Subsequent attempts to contact the device will fail > too, so it's simpler to bail out earlier. > > Signed-off-by: Benjamin Tissoires > --- Ji

[PATCH 3/3] HID: logitech-hidpp: separate HID++ from WTP processing

2014-12-16 Thread Peter Wu
Previously wtp_raw_event would be called through hidpp_raw_hidpp_event (for the touchpad report) and hidpp_raw_event (for the mouse report). This patch removes one calling surface, making a clearer distinction between "generic HID++ processing" (matching internal reports) and device-specific event

Re: [PATCH 1/2] HID: logitech-hidpp: bail out if wtp_connect fails

2014-12-16 Thread Peter Wu
On Tuesday 16 December 2014 17:06:01 Benjamin Tissoires wrote: > If wtp_connect() fails, that means most of the time that the device has > been disconnected. Subsequent attempts to contact the device will fail > too, so it's simpler to bail out earlier. > > Signed-off-by: Benjamin Tissoires > ---

Re: PROBLEM: [HP Stream Notebook - 11-d010nr] clickpad malfunctions after performing a hardware click

2014-12-16 Thread Peter Hutterer
On Mon, Dec 15, 2014 at 03:05:04PM -0500, Amordea Whiteoak wrote: > > Strictly speaking, there is no right click button on clickpads. We > > emulate one with the software buttons in Xorg. > > IIRC, there were some "workarounds" in your original bugs which > > consist in disabling the software butto

Re: [PATCH 2/2] HID: logitech-hidpp: store the name of the device in struct hidpp

2014-12-16 Thread Peter Wu
On Tuesday 16 December 2014 17:06:02 Benjamin Tissoires wrote: > If a disconnect occurs while getting the actual name of the device > (which can take several HID transactions), the name of the device will > be the hid name, provided by the Unifying Receiver. > This means that in some cases, the use

Re: [PATCH 1/2] HID: logitech-hidpp: bail out if wtp_connect fails

2014-12-16 Thread Peter Wu
Hi Benjamin, On Tuesday 16 December 2014 17:13:05 Benjamin Tissoires wrote: > the logitech patches are queuing up really fast. > To keep track of them, I made a bundle on patchwork: > https://patchwork.kernel.org/bundle/bentiss/hid-logitech-hidpp/ > (/me discovered a new tool to play with) > > Ri

Re: [PATCH 1/2] HID: logitech-hidpp: bail out if wtp_connect fails

2014-12-16 Thread Peter Wu
Sorry for the rapid mail, I forgot to mention something. wtp_connect won't work on non-HID++ devices. What about moving it down, between the generic routines (reading protocol and name) and hidpp_allocate_input? Then the connected parameter can also be dropped. Kind regards, Peter On Wednesday 1

RE: [PATCH v15 09/12] input: cyapa: add gen5 trackpad device firmware update function support

2014-12-16 Thread Dudley Du
> -Original Message- > From: linux-input-ow...@vger.kernel.org > [mailto:linux-input-ow...@vger.kernel.org] On Behalf Of Benson Leung > Sent: 2014年12月17日 4:25 > To: Jeremiah Mahler; Dudley Du; Dmitry Torokhov; Henrik Rydberg; Benson Leung; > linux-input@vger.kernel.org; linux-ker...@vger.

Re: [PATCH 2/2] HID: logitech-hidpp: store the name of the device in struct hidpp

2014-12-16 Thread Benjamin Tissoires
On Dec 17 2014 or thereabouts, Peter Wu wrote: > On Tuesday 16 December 2014 17:06:02 Benjamin Tissoires wrote: > > If a disconnect occurs while getting the actual name of the device > > (which can take several HID transactions), the name of the device will > > be the hid name, provided by the Unif

Re: [PATCH 1/2] HID: logitech-hidpp: bail out if wtp_connect fails

2014-12-16 Thread Benjamin Tissoires
On Dec 17 2014 or thereabouts, Peter Wu wrote: > Hi Benjamin, > > On Tuesday 16 December 2014 17:13:05 Benjamin Tissoires wrote: > > the logitech patches are queuing up really fast. > > To keep track of them, I made a bundle on patchwork: > > https://patchwork.kernel.org/bundle/bentiss/hid-logitec

[PATCH v7 1/3] Input: add regulator haptic driver

2014-12-16 Thread Jaewon Kim
This patch adds support for haptic driver controlled by voltage of regulator. And this driver support for Force Feedback interface from input framework Signed-off-by: Jaewon Kim Signed-off-by: Hyunhee Kim Acked-by: Kyungmin Park Tested-by: Chanwoo Choi Reviewed-by: Chanwoo Choi Reviewed-by: P

[PATCH v7 0/3] Add regulator-haptic driver

2014-12-16 Thread Jaewon Kim
This patch series adds regulator-haptic driver. The regulator-haptic has haptic motor and it is controlled by voltage of regulator via force feedback framework. Changes in v7: - move platform_data or of_node check. - prevent to start playing effect when kernel entering suspend state. Changes in

[PATCH v7 3/3] ARM: dts: exynos3250-monk: Add regulator-haptic node for haptics

2014-12-16 Thread Jaewon Kim
This patch adds regulator-haptic device node controlled by regulator. Signed-off-by: Jaewon Kim --- arch/arm/boot/dts/exynos3250-monk.dts |7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/exynos3250-monk.dts b/arch/arm/boot/dts/exynos3250-monk.dts index 24822aa..71

[PATCH v7 2/3] ARM: dts: exynos3250-rinato: Add regulator-haptic node for haptics

2014-12-16 Thread Jaewon Kim
This patch adds regulator-haptic device node controlled by regulator. Signed-off-by: Jaewon Kim Reviewed-by: Chanwoo Choi --- arch/arm/boot/dts/exynos3250-rinato.dts |7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/exynos3250-rinato.dts b/arch/arm/boot/dts/exynos

Re: [PATCH 1/2] HID: logitech-hidpp: bail out if wtp_connect fails

2014-12-16 Thread Benjamin Tissoires
On Dec 17 2014 or thereabouts, Peter Wu wrote: > Sorry for the rapid mail, I forgot to mention something. > > wtp_connect won't work on non-HID++ devices. What about moving it down, > between the generic routines (reading protocol and name) and > hidpp_allocate_input? Then the connected parameter

Re: [PATCH v15 09/12] input: cyapa: add gen5 trackpad device firmware update function support

2014-12-16 Thread Jeremiah Mahler
all, On Tue, Dec 16, 2014 at 12:24:37PM -0800, Benson Leung wrote: > On Tue, Dec 16, 2014 at 5:56 AM, Jeremiah Mahler wrote: > > On Mon, Dec 15, 2014 at 02:23:20PM +0800, Dudley Du wrote: > >> Add firmware image update function supported for gen5 trackpad device, > >> it can be used through sysfs

Re: [PATCH v2 2/3] HID: logitech-hidpp: check WTP report length

2014-12-16 Thread Jiri Kosina
On Tue, 16 Dec 2014, Peter Wu wrote: > Malicious USB devices can send bogus reports smaller than the expected > buffer size. Ensure that the length for WTP reports is valid to avoid > reading out of bounds. > > Signed-off-by: Peter Wu > --- > v1: patch 2/3 HID: logitech-{dj,hidpp}: check report

Re: [PATCH v2 1/3] HID: logitech-dj: check report length

2014-12-16 Thread Jiri Kosina
On Tue, 16 Dec 2014, Peter Wu wrote: > Malicious USB devices can send bogus reports smaller than the expected > buffer size. Ensure that the length is valid to avoid reading out of > bounds. > > Signed-off-by: Peter Wu > --- > v1: patch 2/3 HID: logitech-{dj,hidpp}: check report length > v2: s

Re: [PATCH 3/3] HID: logitech-hidpp: separate HID++ from WTP processing

2014-12-16 Thread Jiri Kosina
On Wed, 17 Dec 2014, Peter Wu wrote: > Previously wtp_raw_event would be called through > hidpp_raw_hidpp_event (for the touchpad report) and hidpp_raw_event > (for the mouse report). > > This patch removes one calling surface, making a clearer distinction > between "generic HID++ processing" (ma