Re: [PATCH 1/1] Elantech touchpad detection fix for laptops

2015-01-05 Thread Srihari Vijayaraghavan
Hello Folks Dmitry, Further to the previous patch, here is the current version (against mainline) updated with the DMI info of another laptop model where this fix had helped a user. Can you please review it give some feedback? If it looks good as it is, then on behalf of all affected users

Re: [PATCH] input: adxl34x: Add OF match support

2015-01-05 Thread Laurent Pinchart
Hi Geert, On Thursday 18 December 2014 21:23:46 Laurent Pinchart wrote: On Thursday 18 December 2014 14:03:18 Geert Uytterhoeven wrote: On Thu, Dec 18, 2014 at 1:49 PM, Laurent Pinchart wrote: There are three compatible strings defined for the ADXL345 and ADXL346 in

[PATCH] Input: Optimize Auto Repeat Loop

2015-01-05 Thread Anshul Garg
From: Anshul Garg aksgarg1...@gmail.com As input_pass_values function is called everytime when EV_SYN is sent from input driver or input event buffer becomes full. So avoid running auto repeat code if input device doesn't support EV_KEY and EV_REP event type. Signed-off-by: Anshul Garg

[PATCH] Input: Optimize Event Filter functionality

2015-01-05 Thread Anshul Garg
From: Anshul Garg aksgarg1...@gmail.com As input_pass_values function is called everytime when EV_SYN is sent from input driver or input event buffer becomes full. So in case of regular handler event filter code should not run so added check whether handler supports filter or not. Signed-off-by:

Re: [PATCH] Input: Optimize input_to_handler and input_pass_values function

2015-01-05 Thread Anshul Garg
Dear Mr Dimtry , Thanks for the suggestions. I will send you the updated patch soon. On Mon, Jan 5, 2015 at 4:27 AM, Dmitry Torokhov dmitry.torok...@gmail.com wrote: On Tue, Dec 30, 2014 at 11:19:53AM +0530, anshu...@samsung.com wrote: From: Anshul Garg anshu...@samsung.com As

[PATCH 1/2] HID: wacom: use WACOM_*_FIELD macros in wacom_usage_mapping()

2015-01-05 Thread Benjamin Tissoires
We introduced nice macros in wacom_wac.c to check whether a field is a pen or a touch one. wacom_usage_mapping() still uses it's own tests, which are not in sync with the wacom_wac tests (.application is not checked). That means that some legitimate fields might be filtered out from the usage

[PATCH v2 2/4] input: synaptics - fix width values calculation on image sensors

2015-01-05 Thread Gabriele Mazzotta
When multiple fingers are on the touchpad, W reports the finger count rather than the width. Retrieve the correct value that is encoded in X, Y and Z of AGM and SGM packets. The minimum width reported is 8 rather than 4 in this case, while the maximum remains 15. Signed-off-by: Gabriele Mazzotta

[PATCH v2 0/4] input: synaptics - report correct width and pressure values

2015-01-05 Thread Gabriele Mazzotta
Make image sensors and cr48 sensors report widths and fix the calculation of width and pressure values in some cases. Changes since v1: - Rebased on 35393dcb2ed3 - Get widths from AGM packets too - Include support for cr48 sensors - Fix pressure values on image sensors Gabriele Mazzotta (4):

[PATCH v2 4/4] input: synaptics - make semi-mt touchpads report widths

2015-01-05 Thread Gabriele Mazzotta
Despite claiming to report finger widths, semi-mt touchpads were not doing it. Make them report widths using ABS_MT_TOUCH_MAJOR instead of ABS_TOOL_WIDTH. Link: https://bugzilla.kernel.org/show_bug.cgi?id=77161 Signed-off-by: Gabriele Mazzotta gabriele@gmail.com ---

[PATCH v2 1/4] input: synaptics - fix pressure values calculation on image sensors

2015-01-05 Thread Gabriele Mazzotta
The pressure values retrieved from secondary packets was incorrectly shifted, making them lower than what they actually were. Since this only happened with secondary packets, the values reported when only one finger was present on the touchpad were correct. Signed-off-by: Gabriele Mazzotta

[PATCH 2/2] HID: wacom: add support of the Pen of the Bamboo Pad

2015-01-05 Thread Benjamin Tissoires
Bamboo Pads are using the generic processing but their report descriptors differ from the ISDv* line. The pen fields are marked with the .physical as Digitizer_Pen, which makes also sense. Add this field to the checks and enable for free Bamboo Pads. Reported-by: Josep Sanchez Ferreres

Re: [PATCH 1/2] input: synaptics - make image sensors report ABS_MT_TOUCH_MAJOR

2015-01-05 Thread Gabriele Mazzotta
On Monday 05 January 2015 14:24:30 Benjamin Tissoires wrote: Hi Gabriele, [Adding Peter and Hans as this change will impact both xf86-input-synaptics and libinput] On Sat, Dec 27, 2014 at 6:31 AM, Gabriele Mazzotta gabriele@gmail.com wrote: Despite claiming to be able to report

Re: [PATCH 1/2] input: synaptics - make image sensors report ABS_MT_TOUCH_MAJOR

2015-01-05 Thread Benjamin Tissoires
On Mon, Jan 5, 2015 at 5:00 PM, Gabriele Mazzotta gabriele@gmail.com wrote: On Monday 05 January 2015 14:24:30 Benjamin Tissoires wrote: Hi Gabriele, [Adding Peter and Hans as this change will impact both xf86-input-synaptics and libinput] On Sat, Dec 27, 2014 at 6:31 AM, Gabriele

Re: [PATCH 2/2] HID: wacom: add support of the Pen of the Bamboo Pad

2015-01-05 Thread Jason Gerecke
On Mon, Jan 5, 2015 at 1:32 PM, Benjamin Tissoires benjamin.tissoi...@redhat.com wrote: Bamboo Pads are using the generic processing but their report descriptors differ from the ISDv* line. The pen fields are marked with the .physical as Digitizer_Pen, which makes also sense. Add this field

no response when capture hid events

2015-01-05 Thread vichy
hi all: I try to cat hid events through debugfs but in vain. My environment is: 1. kernel 3.10.30 2. insert below kos usbhid hid_generic hid evdev usb_storage ehci_hcd xhci_hcd usbcore usb_common 3. mount debugfs as below #mount rootfs on / type rootfs (rw) /dev/root on / type squashfs

[PATCH 00/17] ARM: sunxi: Support cpufreq on sun[457]i

2015-01-05 Thread Chen-Yu Tsai
Hi everyone, This series adds support cpufreq support for sun[457]i using cpufreq-dt. This also supports passive cpu cooling (thermal throttling) using thermal zones with the temperature sensor in the SoC. The operating points for the supported platforms were taken from the linux-sunxi FEX files

[PATCH 03/17] Input: sun4i-ts: Add thermal zone sensor support

2015-01-05 Thread Chen-Yu Tsai
The touchscreen controller has a temperature sensor embedded in the SoC, which already has hwmon support in the driver. Add DT thermal zone support so we can use it with cpufreq for thermal throttling. Signed-off-by: Chen-Yu Tsai w...@csie.org --- .../bindings/input/touchscreen/sun4i.txt

[PATCH 02/17] clk: sunxi: Propagate rate changes to parent for mux clocks

2015-01-05 Thread Chen-Yu Tsai
The cpu clock on sunxi machines is just a mux clock, which is normally fed by the main PLL, but can be muxed to the main or low power oscillator. Make the mux clock propagate rate changes to its parent, so we can change the clock rate of the PLL, and thus actually implement rate changing on the

[PATCH 10/17] ARM: dts: sun5i: Add cpu clock reference and operating points to dtsi

2015-01-05 Thread Chen-Yu Tsai
The cpu core is clocked from the cpu clock. Add a reference to it in the first cpu node. Also add cpu0 label to the node. The operating points were taken from the A13 FEX files in the sunxi-boards repository. All FEX files have the same settings. Signed-off-by: Chen-Yu Tsai w...@csie.org ---

[PATCH 01/17] ARM: sunxi: Register cpufreq-dt for sun[45678]i

2015-01-05 Thread Chen-Yu Tsai
On sun[45678]i, we have one cluster of identical cores sharing a clock, which is ideal for using cpufreq-dt. Register a platform device for cpufreq-dt. Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/mach-sunxi/sunxi.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH 04/17] ARM: dts: sunxi: Add dtsi for AXP209 PMIC

2015-01-05 Thread Chen-Yu Tsai
The AXP209 PMIC is used with some Allwinner SoCs. This patch adds a dtsi file listing all the regulator nodes. The regulators are initialized based on their device node names. Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/boot/dts/axp209.dtsi | 87

[PATCH 07/17] ARM: dts: sun7i: Add cpu thermal zones to dtsi

2015-01-05 Thread Chen-Yu Tsai
The core temperature sensor now supports thermal zones. Add a thermal zone mapping for the cpus with passive cooling (cpufreq throttling). Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/boot/dts/sun7i-a20.dtsi | 32 1 file changed, 32 insertions(+) diff

[PATCH 13/17] ARM: dts: sun4i: Add cpu clock reference and operating points to dtsi

2015-01-05 Thread Chen-Yu Tsai
The cpu core is clocked from the cpu clock. Add a reference to it in the first cpu node. Also add cpu0 label to the node. The operating points were taken from the A10 FEX files in the sunxi-boards repository. All FEX files have the same settings. Signed-off-by: Chen-Yu Tsai w...@csie.org ---

[PATCH 14/17] ARM: dts: sun4i: Add cpu thermal zones to dtsi

2015-01-05 Thread Chen-Yu Tsai
The core temperature sensor now supports thermal zones. Add a thermal zone mapping for the cpus with passive cooling (cpufreq throttling). Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/boot/dts/sun4i-a10.dtsi | 32 1 file changed, 32 insertions(+) diff

[PATCH 08/17] ARM: dts: sun7i: cubieboard2: add axp209 regulator nodes

2015-01-05 Thread Chen-Yu Tsai
This patch adds the regulator nodes for the axp209 by including the axp209 dtsi. As the inputs of these regulators are from the axp209's PS output, which is basically just a mux over the 2 inputs, it is considered to be unregulated. Thus we do not provide input supply properties for them. The

[PATCH 17/17] ARM: multi_v7_defconfig: Enable TOUCHSCREEN_SUN4I, CPU_THERMAL

2015-01-05 Thread Chen-Yu Tsai
This patch enables TOUCHSCREEN_SUN4I and CPU_THERMAL to enable cpufreq support with passive cpu cooling (thermal throttling) on sunxi by default. Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/configs/multi_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 12/17] ARM: dts: sun5i: hsg-h702: add axp209 regulator nodes

2015-01-05 Thread Chen-Yu Tsai
This patch adds the regulator nodes for the axp209 by including the axp209 dtsi. As the inputs of these regulators are from the axp209's PS output, which is basically just a mux over the 2 inputs, it is considered to be unregulated. Thus we do not provide input supply properties for them. The

[PATCH 15/17] ARM: dts: sun4i: cubieboard: add axp209 regulator nodes

2015-01-05 Thread Chen-Yu Tsai
This patch adds the regulator nodes for the axp209 by including the axp209 dtsi. As the inputs of these regulators are from the axp209's PS output, which is basically just a mux over the 2 inputs, it is considered to be unregulated. Thus we do not provide input supply properties for them. The

[PATCH 16/17] ARM: sunxi_defconfig: Enable TOUCHSCREEN_SUN4I, CPUFREQ_DT, CPU_THERMAL

2015-01-05 Thread Chen-Yu Tsai
This patch enables TOUCHSCREEN_SUN4I, CPUFREQ_DT, and CPU_THERMAL to enable cpufreq support with passive cpu cooling (thermal throttling) by default. Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/configs/sunxi_defconfig | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff

[PATCH 11/17] ARM: dts: sun5i: Add cpu thermal zones to dtsi

2015-01-05 Thread Chen-Yu Tsai
The core temperature sensor now supports thermal zones. Add a thermal zone mapping for the cpus with passive cooling (cpufreq throttling). Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/boot/dts/sun5i-a13.dtsi | 32 1 file changed, 32 insertions(+) diff

Re: [PATCH 1/2] input: synaptics - make image sensors report ABS_MT_TOUCH_MAJOR

2015-01-05 Thread Gabriele Mazzotta
On Monday 05 January 2015 14:24:30 Benjamin Tissoires wrote: Hi Gabriele, [Adding Peter and Hans as this change will impact both xf86-input-synaptics and libinput] On Sat, Dec 27, 2014 at 6:31 AM, Gabriele Mazzotta gabriele@gmail.com wrote: Despite claiming to be able to report

Re: [PATCH 1/2] input: synaptics - make image sensors report ABS_MT_TOUCH_MAJOR

2015-01-05 Thread Gabriele Mazzotta
On Monday 05 January 2015 21:13:09 Gabriele Mazzotta wrote: On Monday 05 January 2015 14:24:30 Benjamin Tissoires wrote: Hi Gabriele, [Adding Peter and Hans as this change will impact both xf86-input-synaptics and libinput] On Sat, Dec 27, 2014 at 6:31 AM, Gabriele Mazzotta

Re: [PATCH 2/2] input: synaptics - fix width calculation on image sensors

2015-01-05 Thread Benjamin Tissoires
Hi Gabriele, On Sat, Dec 27, 2014 at 6:31 AM, Gabriele Mazzotta gabriele@gmail.com wrote: When two or more fingers are on the touchpad, the 'w' slot holds the finger count rather than the width. Retrieve the correct value encoded in the lower bits of 'x', 'y' and 'z'. The minimum width

Re: [PATCH 2/2] input: synaptics - fix width calculation on image sensors

2015-01-05 Thread Benjamin Tissoires
On Mon, Jan 5, 2015 at 1:37 PM, Gabriele Mazzotta gabriele@gmail.com wrote: On Monday 05 January 2015 13:25:38 Benjamin Tissoires wrote: Hi Gabriele, On Sat, Dec 27, 2014 at 6:31 AM, Gabriele Mazzotta gabriele@gmail.com wrote: When two or more fingers are on the touchpad, the 'w'

Re: [PATCH 2/2] input: synaptics - fix width calculation on image sensors

2015-01-05 Thread Dmitry Torokhov
On January 5, 2015 10:42:13 AM PST, Benjamin Tissoires benjamin.tissoi...@gmail.com wrote: On Mon, Jan 5, 2015 at 1:37 PM, Gabriele Mazzotta gabriele@gmail.com wrote: On Monday 05 January 2015 13:25:38 Benjamin Tissoires wrote: Hi Gabriele, On Sat, Dec 27, 2014 at 6:31 AM, Gabriele

Re: [PATCH 2/2] input: synaptics - fix width calculation on image sensors

2015-01-05 Thread Benjamin Tissoires
On Mon, Jan 5, 2015 at 2:04 PM, Dmitry Torokhov dmitry.torok...@gmail.com wrote: On January 5, 2015 10:42:13 AM PST, Benjamin Tissoires benjamin.tissoi...@gmail.com wrote: On Mon, Jan 5, 2015 at 1:37 PM, Gabriele Mazzotta gabriele@gmail.com wrote: On Monday 05 January 2015 13:25:38

Re: [PATCH 2/2] input: synaptics - fix width calculation on image sensors

2015-01-05 Thread Gabriele Mazzotta
On Monday 05 January 2015 11:04:07 Dmitry Torokhov wrote: On January 5, 2015 10:42:13 AM PST, Benjamin Tissoires benjamin.tissoi...@gmail.com wrote: On Mon, Jan 5, 2015 at 1:37 PM, Gabriele Mazzotta gabriele@gmail.com wrote: On Monday 05 January 2015 13:25:38 Benjamin Tissoires wrote:

Re: [PATCH 1/2] input: synaptics - make image sensors report ABS_MT_TOUCH_MAJOR

2015-01-05 Thread Benjamin Tissoires
Hi Gabriele, [Adding Peter and Hans as this change will impact both xf86-input-synaptics and libinput] On Sat, Dec 27, 2014 at 6:31 AM, Gabriele Mazzotta gabriele@gmail.com wrote: Despite claiming to be able to report ABS_TOOL_WIDTH, image sensors were not doing it. Make them report widths

Re: [PATCH 2/2] input: synaptics - fix width calculation on image sensors

2015-01-05 Thread Benjamin Tissoires
On Mon, Jan 5, 2015 at 2:15 PM, Gabriele Mazzotta gabriele@gmail.com wrote: On Monday 05 January 2015 11:04:07 Dmitry Torokhov wrote: On January 5, 2015 10:42:13 AM PST, Benjamin Tissoires benjamin.tissoi...@gmail.com wrote: On Mon, Jan 5, 2015 at 1:37 PM, Gabriele Mazzotta

Re: [PATCH] Input: synaptics - switch ForcePad detection to PNP IDs

2015-01-05 Thread Benjamin Tissoires
On Dec 29 2014 or thereabouts, Dmitry Torokhov wrote: According to Synaptics devices with ForcePads use SYN300D and SYN3014 as PNP IDs, so let's switch from DMI-bases detection scheme to PNP-based one, which should be more reliable. Suggested-by: Hans de Goede hdego...@redhat.com

Re: [PATCH] Input: psmouse - use IS_ENABLED instead of homegrown code

2015-01-05 Thread Benjamin Tissoires
On Dec 29 2014 or thereabouts, Dmitry Torokhov wrote: Instead of having various protocols provide protocol_supported() functions, let's use IS_ENABLED() macro that works well in if statements. Signed-off-by: Dmitry Torokhov dmitry.torok...@gmail.com --- Reviewed-by: Benjamin Tissoires

Re: [PATCH 1/2] Input: synaptics: Use in-kernel tracking for reporting mt data

2015-01-05 Thread Benjamin Tissoires
Hi Dmitry, On Dec 29 2014 or thereabouts, Dmitry Torokhov wrote: Hi Benjamin, On Mon, Dec 08, 2014 at 01:01:28PM -0500, Benjamin Tissoires wrote: On Thu, Nov 20, 2014 at 2:42 PM, Benjamin Tissoires benjamin.tissoi...@gmail.com wrote: On Fri, Oct 31, 2014 at 12:51 PM, Dmitry Torokhov

Re: hid-replay captured data

2015-01-05 Thread Benjamin Tissoires
Hi Josep, On Mon, Dec 8, 2014 at 5:04 PM, Benjamin Tissoires benjamin.tissoi...@gmail.com wrote: Thanks for the logs (both way arrived in my mailbox, attached file or pastebin). I'll try to have a look at them on Wednesday. Actually, it's nearly been a month. Thanks for the reminder.