[PATCH v12 00/19] input: cyapa: instruction of cyapa patches

2014-12-03 Thread Dudley Du
V12 patches have below main updates compared with v10 patches: 1) Add check that when TP is detected but not operational, do not exit driver immediately, but wait and export the update_fw interface for recovering. 2) Re-arrange the function codes, remove unnesseary protype definitions in the

[PATCH v12 02/19] input: cyapa: add device resource management infrastructure support

2014-12-03 Thread Dudley Du
Remove cyapa_remove() method, add cyapa_open() and cyapa_close() methods for input interface, also modified together with driver's memory and IRQ resource allocations to support device resource management infrastructure to reduce the mistakes of resource management. TEST=test on Chromebooks.

[PATCH v12 06/19] input: cyapa: add runtime power management interfaces supported for the device

2014-12-03 Thread Dudley Du
Add runtime_suspend_scanrate_ms power management interfaces in device's power group, so users or applications can control the runtime power management strategy of trackpad device as their requirements. TEST=test on Chromebooks. Signed-off-by: Dudley Du dudley.duli...@gmail.com ---

[PATCH v12 17/19] input: cyapa: add read sensors raw data debugfs interface support

2014-12-03 Thread Dudley Du
Add read sensors' raw data from trackpad device interface supported in cyapa driver through debugfs raw_data interface. Through this interface, user can read difference count map of each sensors directly from trackpad device (some customers want). And it's useful to help users to find out the root

[PATCH v12 16/19] input: cyapa: add gen5 trackpad device read firmware image function support

2014-12-03 Thread Dudley Du
Add read firmware image function supported for gen5 trackpad device, it can be used through debugfs read_fw interface. TEST=test on Chromebooks. Signed-off-by: Dudley Du dudley.duli...@gmail.com --- drivers/input/mouse/cyapa.h | 1 + drivers/input/mouse/cyapa_gen5.c | 155

[PATCH v12 15/19] input: cyapa: add gen3 trackpad device read firmware image function support

2014-12-03 Thread Dudley Du
Add read firmware image function supported for gen3 trackpad device, it can be used through debugfs read_fw interface. TEST=test on Chromebooks. Signed-off-by: Dudley Du dudley.duli...@gmail.com --- drivers/input/mouse/cyapa_gen3.c | 67 1 file changed,

[PATCH v12 18/19] input: cyapa: add gen5 trackpad device read raw data function support

2014-12-03 Thread Dudley Du
Add read raw data function supported for gen5 trackpad device, it can be used through debugfs raw_data interface. TEST=test on Chromebooks. Signed-off-by: Dudley Du dudley.duli...@gmail.com --- drivers/input/mouse/cyapa_gen5.c | 138 +++ 1 file changed, 138

[PATCH v12 14/19] input: cyapa: add read firmware image debugfs interface support

2014-12-03 Thread Dudley Du
Add read firmware image from trackpad device interface supported in cyapa driver through debugfs read_fw interface. Through this interface user can read out, check and backup the firmware image of the trackpad device before any firmware update, or can use the backed image to do firmware image

[PATCH v12 19/19] input: cyapa: add acpi device id supported

2014-12-03 Thread Dudley Du
Add acpi device tree supported. acpi device id CYAP is for old gen3 trackpad devices. acpi device id CYAP0001 is for new gen5 trackpad devices. TEST=test on Chromebooks. Signed-off-by: Dudley Du dudley.duli...@gmail.com --- drivers/input/mouse/cyapa.c | 13 + 1 file changed, 13

[PATCH v12 13/19] input: cyapa: add gen5 trackpad device force re-calibrate function support

2014-12-03 Thread Dudley Du
Add force re-calibrate function supported for gen5 trackpad device, it can be used through sysfs calibrate interface. TEST=test on Chromebooks. Signed-off-by: Dudley Du dudley.duli...@gmail.com --- drivers/input/mouse/cyapa_gen5.c | 65 1 file changed, 65

[PATCH v12 12/19] input: cyapa: add gen5 trackpad device read baseline function support

2014-12-03 Thread Dudley Du
Add read baseline function supported for gen5 trackpad device, it can be used through sysfs baseline interface. TEST=test on Chromebooks. Signed-off-by: Dudley Du dudley.duli...@gmail.com --- drivers/input/mouse/cyapa.h | 2 + drivers/input/mouse/cyapa_gen5.c | 621

[PATCH v12 11/19] input: cyapa: add gen5 trackpad device firmware update function support

2014-12-03 Thread Dudley Du
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 dudley.duli...@gmail.com --- drivers/input/mouse/Kconfig | 2 +- drivers/input/mouse/cyapa_gen5.c | 290

[PATCH v12 10/19] input: cyapa: add gen3 trackpad device force re-calibrate function support

2014-12-03 Thread Dudley Du
Add force re-calibrate function supported for gen3 trackpad device, it can be used through sysfs calibrate interface. TEST=test on Chromebooks. Signed-off-by: Dudley Du dudley.duli...@gmail.com --- drivers/input/mouse/cyapa_gen3.c | 58 1 file changed, 58

[PATCH v12 08/19] input: cyapa: add gen3 trackpad device firmware update function support

2014-12-03 Thread Dudley Du
Add firmware image update function supported for gen3 trackpad device, it can be used through sysfs update_fw interface. TEST=test on Chromebooks. Signed-off-by: Dudley Du dudley.duli...@gmail.com --- drivers/input/mouse/cyapa_gen3.c | 284 +++ 1 file changed,

[PATCH v12 07/19] input: cyapa: add sysfs interfaces supported in the cyapa driver

2014-12-03 Thread Dudley Du
Add device's basic control and features supported in cyapa driver through sysfs file system interfaces. These interfaces are commonly used in pre- and after production, for trackpad device state checking, managing and firmware image updating. These interfaces including mode, firmware_version and

[PATCH v12 09/19] input: cyapa: add gen3 trackpad device read baseline function support

2014-12-03 Thread Dudley Du
Add read baseline function supported for gen3 trackpad device, it can be used through sysfs baseline interface. TEST=test on Chromebooks. Signed-off-by: Dudley Du dudley.duli...@gmail.com --- drivers/input/mouse/cyapa_gen3.c | 71 1 file changed, 71

[PATCH v12 05/19] input: cyapa: add power management interfaces supported for the device

2014-12-03 Thread Dudley Du
Add suspend_scanrate_ms power management interfaces in device's power group, so users or applications can control the power management strategy of trackpad device as their requirements. TEST=test on Chromebooks. Signed-off-by: Dudley Du dudley.duli...@gmail.com --- drivers/input/mouse/cyapa.c |

[PATCH v12 04/19] input: cyapa: add gen5 trackpad device basic functions support

2014-12-03 Thread Dudley Du
Based on the cyapa core, add the gen5 trackpad device's basic functions supported, so gen5 trackpad device can work with kernel input system. And also based on the state parse interface, the cyapa driver can automatically determine the attached is gen3 or gen5 protocol trackpad device, then set

[PATCH v12 03/19] input: cyapa: re-design driver to support multi-trackpad in one driver

2014-12-03 Thread Dudley Du
In order to support multiple different chipsets and communication protocols trackpad devices in one cyapa driver, the new cyapa driver is re-designed with one cyapa driver core and multiple device specific functions component. The cyapa driver core is contained in this patch, it supplies basic

[PATCH v12 01/19] input: cyapa: modify code to following kernel code style

2014-12-03 Thread Dudley Du
This patch modified the code to fix the patch check warning issue with latest checkpatch.sh tool, and also changed the return variable name from ret to error when there is only one error path to follow code style. TEST=test on Chromebooks. Signed-off-by: Dudley Du dudley.duli...@gmail.com ---

Re: [PATCH] i2c-hid / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM

2014-12-03 Thread Mika Westerberg
On Wed, Dec 03, 2014 at 02:56:07AM +0100, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME may now

Re: [linux-sunxi] Re: [PATCH v7 1/6] mfd: AXP20x: Add bindings documentation

2014-12-03 Thread Chen-Yu Tsai
Hi Mark, I'm (hopefully) picking up the work for this series. On Mon, Jun 30, 2014 at 5:48 PM, Mark Rutland mark.rutl...@arm.com wrote: On Sun, Jun 29, 2014 at 07:23:52PM +0100, Carlo Caione wrote: Bindings documentation for the AXP20x driver. In this file also sub-nodes are documented.

Re: [PATCH 0/7] Fixes for ALPS trackstick

2014-12-03 Thread Pali Rohár
On Thursday 27 November 2014 19:08:04 Dmitry Torokhov wrote: On November 25, 2014 3:08:31 AM PST, Pali Rohár pali.ro...@gmail.com wrote: On Thursday 20 November 2014 00:29:49 Pali Rohár wrote: On Monday 17 November 2014 08:39:14 Pali Rohár wrote: On Friday 14 November 2014 21:59:31 Dmitry

Re: Side effect of pressing special keys

2014-12-03 Thread Pavel Machek
On Sun 2014-11-23 14:41:17, Pali Rohár wrote: Hello, pressing some keys on laptops could cause some side effects. Example scenario 1: Laptop has Fn key for enabling/disabling WIFI and when that key is pressed BIOS is doing two things: 1) Switch hard rfkill state of WIFI 2) Report

Re: Side effect of pressing special keys

2014-12-03 Thread Pali Rohár
On Wednesday 03 December 2014 13:40:42 Pavel Machek wrote: On Sun 2014-11-23 14:41:17, Pali Rohár wrote: Hello, pressing some keys on laptops could cause some side effects. Example scenario 1: Laptop has Fn key for enabling/disabling WIFI and when that key is pressed BIOS is

Re: Side effect of pressing special keys

2014-12-03 Thread Henrique de Moraes Holschuh
On Wed, 03 Dec 2014, Pali Rohár wrote: Ok, and what about KEY_KBDILLUMTOGGLE when bios also handle keyboard backlight level? Should be this key filtered too? IME, heck yes. If you ever make the mistake of sending to userspace something the BIOS/kernel already reacted to, they will find a way

Re: Side effect of pressing special keys

2014-12-03 Thread Pali Rohár
On Wednesday 03 December 2014 14:12:54 Henrique de Moraes Holschuh wrote: On Wed, 03 Dec 2014, Pali Rohár wrote: Ok, and what about KEY_KBDILLUMTOGGLE when bios also handle keyboard backlight level? Should be this key filtered too? IME, heck yes. If you ever make the mistake of sending

[PATCH 2/4] alps: v7: Ignore new packets

2014-12-03 Thread Hans de Goede
NEW packets are send to indicate a discontinuity in the finger coordinate reporting. Specifically a finger may have moved from slot 0 to 1 or vice versa. INPUT_MT_TRACK takes care of this for us. NEW packets have 3 problems: 1) They do not contain middle / right button info (on non clickpads)

[PATCH 3/4] alps: v7: Sometimes a single touch is reported in mt[1] rather then mt[0]

2014-12-03 Thread Hans de Goede
The v7 proto differentiates between a primary touch (with high precision) and a secondary touch (with lower precision). Normally when 2 fingers are down and one is lifted the still present touch becomes the primary touch, but some traces have shown that this does not happen always. This commit

[PATCH 1/4] alps: v7: Document the v7 touchpad packet protocol

2014-12-03 Thread Hans de Goede
Add a table documenting where all the bits are in the v7 touchpad packets. Cc: sta...@vger.kernel.org # 3.17 Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/input/mouse/alps.c | 28 1 file changed, 28 insertions(+) diff --git

[PATCH 4/4] alps: v7: Fix finger counting for 2 fingers on clickpads

2014-12-03 Thread Hans de Goede
Protocol v7 uses the middle / right button bits on clickpads to communicate location information of a 3th touch (and possible 4th) touch on clickpads. Specifically when 3 touches are down, if one of the 3 touches is in the left / right button area, this will get reported in the middle / right

Re: Side effect of pressing special keys

2014-12-03 Thread Gabriele Mazzotta
On Wednesday 03 December 2014 14:24:11 Pali Rohár wrote: On Wednesday 03 December 2014 14:12:54 Henrique de Moraes Holschuh wrote: On Wed, 03 Dec 2014, Pali Rohár wrote: Ok, and what about KEY_KBDILLUMTOGGLE when bios also handle keyboard backlight level? Should be this key filtered

Re: Incorrect Key Values in the array atakbd_keycode in atakdb.c

2014-12-03 Thread Dmitry Torokhov
On Wed, Dec 03, 2014 at 08:12:39AM -0500, nick wrote: No I don't. I am was wondering why they are there still if there is no reason for them. Cheers Nick I'd rather hear this statement from a person with the hardware (such as Geert for example). Thanks. On 2014-12-03 12:52 AM, Dmitry

Re: [PATCH] input/speaker: additional clicks and tones for future accessibility

2014-12-03 Thread Dmitry Torokhov
Hi Karl, On Tue, Dec 02, 2014 at 12:17:40AM -0500, Karl Dahlke wrote: From: Karl Dahlke ekl...@gmail.com Add clicks, tones, and tone sequences to the pc speaker. The speaker driver can play a tone at a specified frequency, or the standard control G bell, which is a special case of TONE

[PATCH] Input: Initialize atomic_t variables by -1

2014-12-03 Thread Aniroop Mathur
This patch initializes atomic_t variables by -1 in order to avoid extra subtraction operation performed everytime for allocation of an input device. Signed-off-by: Aniroop Mathur aniroop.mat...@gmail.com --- drivers/input/gameport/gameport.c | 4 ++-- drivers/input/joystick/xpad.c | 4 ++--

[PATCH] Input: Initialize device count variables by -1

2014-12-03 Thread Aniroop Mathur
This patch initializes input device count variables by -1 in order to avoid extra subtraction operation performed everytime for allocation of an input device. Signed-off-by: Aniroop Mathur aniroop.mat...@gmail.com --- drivers/input/gameport/gameport.c | 4 ++-- drivers/input/joystick/xpad.c

[PATCH] input/speaker: additional clicks and tones for future...

2014-12-03 Thread Karl Dahlke
Thank you for your thoughtful reply. I do not think it is a good idea to add SND_PULSE as it can be easily implemented by SND_TONE. It isn't that simple. Example: if a tone is playing for any reason the clicks do not interrupt the tone. (It would sound terrible, I've tried it). Clicks and

Re: [PATCH] Input: Initialize device count variables by -1

2014-12-03 Thread Dmitry Torokhov
On Thu, Dec 04, 2014 at 02:09:06AM +0530, Aniroop Mathur wrote: This patch initializes input device count variables by -1 in order to avoid extra subtraction operation performed everytime for allocation of an input device. Signed-off-by: Aniroop Mathur aniroop.mat...@gmail.com Applied,

Re: [PATCH] input/speaker: additional clicks and tones for future...

2014-12-03 Thread Dmitry Torokhov
On Wed, Dec 03, 2014 at 04:02:58PM -0500, Karl Dahlke wrote: Thank you for your thoughtful reply. I do not think it is a good idea to add SND_PULSE as it can be easily implemented by SND_TONE. It isn't that simple. Example: if a tone is playing for any reason the clicks do not interrupt

[PATCH 2/3] drivers:input:ps2 Added sunxi A20 ps2 driver, changed makefile and Kconfig

2014-12-03 Thread vishnupatekar
--- drivers/input/serio/Kconfig |9 ++ drivers/input/serio/Makefile|1 + drivers/input/serio/sunxi-ps2.c | 305 +++ 3 files changed, 315 insertions(+) create mode 100644 drivers/input/serio/sunxi-ps2.c diff --git a/drivers/input/serio/Kconfig

Re: [PATCH v2 2/2] Input: amikbd - Allocate temporary keymap buffer on the stack

2014-12-03 Thread Dmitry Torokhov
On Sun, Nov 30, 2014 at 10:30:20AM +0100, Geert Uytterhoeven wrote: Allocate the temporary buffer needed for initialization of the console keyboard maps (512 bytes, as NR_KEYS = 256) on the stack instead of statically, to reduce kernel size. add/remove: 0/1 grow/shrink: 0/0 up/down: 0/-512

Re: [PATCH 2/3] drivers:input:ps2 Added sunxi A20 ps2 driver, changed makefile and Kconfig

2014-12-03 Thread Dmitry Torokhov
On Thu, Dec 04, 2014 at 04:23:44AM +0530, vishnupatekar wrote: --- drivers/input/serio/Kconfig |9 ++ drivers/input/serio/Makefile|1 + drivers/input/serio/sunxi-ps2.c | 305 +++ 3 files changed, 315 insertions(+) create mode 100644

Re: [PATCH] input/speaker: additional clicks and tones for future accessibility

2014-12-03 Thread Vojtech Pavlik
On Wed, Dec 03, 2014 at 11:58:11AM -0800, Dmitry Torokhov wrote: Hi Karl, On Tue, Dec 02, 2014 at 12:17:40AM -0500, Karl Dahlke wrote: From: Karl Dahlke ekl...@gmail.com Add clicks, tones, and tone sequences to the pc speaker. The speaker driver can play a tone at a specified

Re: [PATCH v4 1/2] Input: add regulator haptic driver

2014-12-03 Thread Jaewon Kim
Hi Dmity, 2014년 12월 03일 15:29에 Jaewon Kim 이(가) 쓴 글: Hi Dmitry, 2014년 12월 03일 15:02에 Dmitry Torokhov 이(가) 쓴 글: Hi Jaewon, On Mon, Dec 01, 2014 at 11:11:12AM +0900, Jaewon Kim wrote: This patch adds support for haptic driver controlled by voltage of regulator. And this driver support for

[PATCH] input/speaker: additional clicks and tones for future...

2014-12-03 Thread Karl Dahlke
It seems to be the general consensus that these sound functions should not be integrated into the kernel - and that's ok. Allow me then to ask one more question if I may. I have a module, ttyclicks.ko, that makes sounds and clicks and such, and is used primarily by adapters. By design, it operates

Re: [PATCH] Input: Initialize device count variables by -1

2014-12-03 Thread Aniroop Mathur
On Thu, Dec 4, 2014 at 4:05 AM, Dmitry Torokhov dmitry.torok...@gmail.com wrote: On Thu, Dec 04, 2014 at 02:09:06AM +0530, Aniroop Mathur wrote: This patch initializes input device count variables by -1 in order to avoid extra subtraction operation performed everytime for allocation of an