[PATCH] input: Drop owner assignment from i2c_driver

2015-07-10 Thread Krzysztof Kozlowski
i2c_driver does not need to set an owner because i2c_register_driver() will set it. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- The coccinelle script which generated the patch was sent here: http://www.spinics.net/lists/kernel/msg2029903.html ---

[PATCH] HID: hid-sony: Navigator Axis for L1 button

2015-07-10 Thread Simon Wood
Patch HID report descriptor to add joystick axis for the L1 button (previously missing). Signed-off-by: Simon Wood si...@mungewell.org --- drivers/hid/hid-sony.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index

Re: [PATCH] Input - elantech: force a resolution of 31 u/mm

2015-07-10 Thread Hans de Goede
Hi, On 10-07-15 02:32, Peter Hutterer wrote: All Elantech touchpads pre-v4 with dynamic resolution queries have a fixed resolution of 800dpi - 31.49 units/mm. Set this statically, so userspace does not have to guess. Cc: Duson Lin duson...@emc.com.tw Signed-off-by: Peter Hutterer

Re: [PATCH 2/3] Input: of_touchscreen - fix setting max values on X/Y axis

2015-07-10 Thread Roger Quadros
On 09/07/15 21:16, Dmitry Torokhov wrote: On Thu, Jul 09, 2015 at 11:32:11AM +0300, Roger Quadros wrote: Dmitry, On 08/07/15 18:08, Dmitry Torokhov wrote: On Wed, Jul 08, 2015 at 10:59:04AM +0300, Roger Quadros wrote: Dmitry, On 07/07/15 19:25, Dmitry Torokhov wrote: Hi Roger, On Tue,

Re: [PATCH v2] HID: cp2112: support i2c write-read transfers in hid-cp2112

2015-07-10 Thread Jiri Kosina
On Thu, 9 Jul 2015, Ellen Wang wrote: cp2112_i2c_xfer() only supports a single i2c_msg. More than one message at a time just returns EIO. This breaks certain important cases. For example, the at24 eeprom driver generates paired write and read messages (for eeprom address and data).

Re: [PATCH v1] HID: cp2112: support i2c write-read transfers in hid-cp2112

2015-07-10 Thread Ellen Wang
On 07/09/2015 05:22 AM, Jiri Kosina wrote: On Wed, 8 Jul 2015, Ellen Wang wrote: ... This patch should be applied after my other patch: https://patchwork.ozlabs.org/patch/492842/ Well, it actually conflicts with it :) The conflict is easy to resolve, but as you might be sending v2 anyway,

[PATCH] CHROMIUM: elants_i2c.c: Disable idle mode before firmware upgrade procedure.

2015-07-10 Thread james.chen
From: james.chen james.c...@emc.com.tw This patch is disable idle mode before firmware upgrade procedure. BUG=chrome-os-partner:39373 TEST= Test Elan touchscreen on cyan project(kernel 3.18) without problems. --- drivers/input/touchscreen/elants_i2c.c | 8 +++- 1 file changed, 7

Re: [PATCH v2] HID: cp2112: support large i2c transfers in hid-cp2112

2015-07-10 Thread Vaibhav Hiremath
On Wednesday 08 July 2015 11:38 PM, Ellen Wang wrote: On 07/08/2015 05:07 AM, Vaibhav Hiremath wrote: On Wednesday 08 July 2015 03:55 PM, Ellen Wang wrote: cp2112_i2c_xfer() only reads up to 61 bytes, returning EIO on longers reads. The fix is to wrap a loop around cp2112_read() to pick

Re: [PATCH] HID: rmi: Write updated F11 control registers after reset

2015-07-10 Thread Gabriele Mazzotta
On Thursday 09 July 2015 17:41:28 Andrew Duggan wrote: On 07/09/2015 03:40 PM, Gabriele Mazzotta wrote: On Thursday 09 July 2015 15:14:17 Andrew Duggan wrote: When a device is reset the values of control registers will be reset to the defaults. This patch reapplies the control register

[PATCH] Add generic driver for Silead tochscreens

2015-07-10 Thread Robert Dolca
This driver adds support for Silead touchscreens. It has been tested with GSL1680 and GSL3680 touch panels. It supports ACPI and device tree enumeration. For ACPI you need ACPI 5.1+ in order to be able to use named GPIOs. In device tree you can use 'interrupts' or a named GPIO for IRQ. Screen

RE: [PATCH] Input: wdt87xx_i2c - Add a prodcut_id attribute in sysfs

2015-07-10 Thread Hn Chen
Hi, Dmitry, Thanks for your question! Since the controller will change the working freq when the system encounter the power noises, like display patterns or on/off, the environment radiation, and charger noises, etc. The i2c bus will have data error(rarely) randomly cause by the freq change

RE: [PATCH] Input: wdt87xx_i2c - Add a prodcut_id attribute in sysfs

2015-07-10 Thread Hn Chen
Hi, Dmitry, Thanks for your suggestion ! I will just follow your suggestion and resubmit a patch! BR, Hn.chen -Original Message- From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] Sent: Friday, July 10, 2015 5:00 AM To: Hn Chen Cc: linux-input@vger.kernel.org;

Re: [PATCH resend] input: fix sur40.c dependency/build errors

2015-07-10 Thread Dmitry Torokhov
(+) --- linux-next-20150710.orig/drivers/input/touchscreen/Kconfig +++ linux-next-20150710/drivers/input/touchscreen/Kconfig @@ -993,6 +993,7 @@ config TOUCHSCREEN_SUN4I config TOUCHSCREEN_SUR40 tristate Samsung SUR40 (Surface 2.0/PixelSense) touchscreen depends on USB

Re: [PATCH resend] input: fix sur40.c dependency/build errors

2015-07-10 Thread Dmitry Torokhov
, thank you. Actually, Mauro, can this go through media tree for now? --- drivers/input/touchscreen/Kconfig |1 + 1 file changed, 1 insertion(+) --- linux-next-20150710.orig/drivers/input/touchscreen/Kconfig +++ linux-next-20150710/drivers/input/touchscreen/Kconfig @@ -993,6

[PATCH v2] HID: rmi: Write updated F11 control registers after reset

2015-07-10 Thread Andrew Duggan
When a device is reset the values of control registers will be reset to the defaults. This patch reapplies the control register values set for F11 by the driver. Signed-off-by: Andrew Duggan adug...@synaptics.com --- drivers/hid/hid-rmi.c | 56 +++

Re: [PATCH v2] HID: cp2112: support large i2c transfers in hid-cp2112

2015-07-10 Thread Ellen Wang
On 07/09/2015 01:07 AM, Vaibhav Hiremath wrote: ... +count += ret; +if (count msgs-len) { +/* + * The hardware returned too much data. + * This is mostly harmless because cp2112_read() + * has a limit check so didn't overrun our +