Re: [PATCH v3 2/2] Input: synaptics-rmi4 - add support for F3A

2020-09-30 Thread Andrew Duggan
Hans de Goede > Tested-by: Hans de Goede Reviewed-by: Andrew Duggan > --- > drivers/input/rmi4/Kconfig | 8 ++ > drivers/input/rmi4/Makefile | 1 + > drivers/input/rmi4/rmi_bus.c| 3 + > drivers/input/rmi4/rmi_driver.h | 1 +

Re: [PATCH v3 1/2] Input: synaptics-rmi4 - rename f30_data to gpio_data

2020-09-30 Thread Andrew Duggan
-by: Hans de Goede Reviewed-by: Andrew Duggan > --- > drivers/hid/hid-rmi.c | 2 +- > drivers/input/mouse/synaptics.c | 2 +- > drivers/input/rmi4/rmi_f30.c| 14 +++--- > include/linux/rmi.h | 11 ++- > 4 files changed, 15 insertions(+

[PATCH] Input: synaptics-rmi4 - validate that the rmi_dev pointer is set before dereferencing it

2019-10-22 Thread Andrew Duggan
driver will not dereference a NULL pointer. Signed-off-by: Andrew Duggan --- drivers/input/rmi4/rmi_bus.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/input/rmi4/rmi_bus.c b/drivers/input/rmi4/rmi_bus.c index af706a583656..6c3abae1e159 100644 --- a/drivers/input

[PATCH] HID: rmi: Check that the RMI_STARTED bit is set before unregistering the RMI transport device

2019-10-22 Thread Andrew Duggan
kernel oops was reported in this message: https://www.spinics.net/lists/linux-input/msg58433.html Signed-off-by: Andrew Duggan Reported-by: Federico Cerutti --- drivers/hid/hid-rmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-rmi.c b/drivers/hid/hid

Re: [PATCH] Input: synaptics-rmi4 - Avoid processing unknown IRQs

2019-10-11 Thread Andrew Duggan
andle the IRQ was removed when the driver switched to using an irq domain. Setting the fn_irq_bits and using them instead of current_irq_mask in rmi_process_interrupt_requests() makes sense to me. Andrew > Signed-off-by: Evan Green Reviewed-by: Andrew Duggan > --- > > drivers/in

Re: [PATCH] Input: synaptics-rmi4 - Fix an unchecked out of memory error path

2018-04-02 Thread Andrew Duggan
Yep, that definitely looks like an oversight on my part. Thanks for the fix. Andrew Signed-off-by: Christophe JAILLET Reviewed-by: Andrew Duggan --- drivers/input/rmi4/rmi_spi.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/input/rmi4/rmi_spi.c b/drivers/

[PATCH] HID: rmi: Support the Fujitsu R726 Pad dock using hid-rmi

2017-11-17 Thread Andrew Duggan
The Fujitsu R726 Pad has an optional USB keyboard dock which contains a Synaptics touchpad. The dock identifies itself as a Primax Rezel Tablet Keyboard. Signed-off-by: Andrew Duggan --- drivers/hid/hid-core.c | 1 + drivers/hid/hid-ids.h | 1 + drivers/hid/hid-rmi.c | 1 + 3 files changed, 3

[PATCH] Input: synaptics-rmi4: Limit the range of what GPIOs are buttons

2017-10-24 Thread Andrew Duggan
rmi_f30_is_valid_button() but should not be considered buttons. This patch limits the GPIOs which are mapped to buttons to just the first 6. Signed-off-by: Andrew Duggan Reported-by: Daniel Martin --- I think that this patch will fix the issue with the Lenovo X1 Cover not being set as a buttonpad. Based on the

Re: [PATCH] HID: rmi: Check that a device is a RMI device before calling RMI functions

2017-10-18 Thread Andrew Duggan
have this check, but this patch adds checks to the remaining callbacks. Signed-off-by: Andrew Duggan --- This is the patch which hopefully will address the X1 tablet dock freeze: http://www.spinics.net/lists/linux-input/msg53582.html I was not able to test on a composite USB device so I have not

[PATCH] HID: rmi: Check that a device is a RMI device before calling RMI functions

2017-10-17 Thread Andrew Duggan
The hid-rmi driver may handle non rmi devices on composite USB devices. Callbacks need to make sure that the current device is a RMI device before calling RMI specific functions. Most callbacks already have this check, but this patch adds checks to the remaining callbacks. Signed-off-by: Andrew

[PATCH] Input: synaptics - Disable kernel tracking on SMBus devices

2017-09-28 Thread Andrew Duggan
unclear how much of an issue kernel jumps actually are. This patch simply disabled kernel tracking for now. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1482640 Signed-off-by: Andrew Duggan Tested-by: Kamil Páral --- drivers/input/mouse/synaptics.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH] Input: synaptics-rmi4 - Only read the F54 query registers which are used

2017-06-20 Thread Andrew Duggan
f the incoming report") Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=195949 Signed-off-by: Andrew Duggan --- Also, in addition to changing the size of the read I moved the query buffer. I figured that since the query buffer is only acceessed in the rmi_f54_detect function it was not necessa

Re: Crash caused by hid-rmi and no longer working touchscreen

2017-04-10 Thread Andrew Duggan
On 04/10/2017 11:38 AM, Dmitry Torokhov wrote: On Mon, Apr 10, 2017 at 03:18:03PM +0200, Jiri Kosina wrote: [ a couple more people from "the other regression thread" added to CC ] On Mon, 10 Apr 2017, Gabriele Mazzotta wrote: Hi, I'm having troubles with hid-rmi using 4.11-rc6. I'm getting s

Re: Synaptics RMI4 touchpad regression in 4.11-rc1

2017-03-31 Thread Andrew Duggan
On 03/31/2017 01:57 AM, Benjamin Tissoires wrote: On Mar 29 2017 or thereabouts, Andrew Duggan wrote: On 03/29/2017 01:50 AM, Benjamin Tissoires wrote: On Mar 28 2017 or thereabouts, Andrew Duggan wrote: On 03/19/2017 10:00 PM, Peter Hutterer wrote: On Fri, Mar 17, 2017 at 12:23:36PM -0700

Re: Synaptics RMI4 touchpad regression in 4.11-rc1

2017-03-29 Thread Andrew Duggan
On 03/29/2017 01:50 AM, Benjamin Tissoires wrote: On Mar 28 2017 or thereabouts, Andrew Duggan wrote: On 03/19/2017 10:00 PM, Peter Hutterer wrote: On Fri, Mar 17, 2017 at 12:23:36PM -0700, Andrew Duggan wrote: On 03/17/2017 09:57 AM, Benjamin Tissoires wrote: On Wed, Mar 15, 2017 at 2:19

Re: Synaptics RMI4 touchpad regression in 4.11-rc1

2017-03-28 Thread Andrew Duggan
On 03/19/2017 10:00 PM, Peter Hutterer wrote: On Fri, Mar 17, 2017 at 12:23:36PM -0700, Andrew Duggan wrote: On 03/17/2017 09:57 AM, Benjamin Tissoires wrote: On Wed, Mar 15, 2017 at 2:19 AM, Andrew Duggan wrote: On 03/13/2017 10:10 PM, Cameron Gutman wrote: On 03/13/2017 06:35 PM, Andrew

Re: Synaptics RMI4 touchpad regression in 4.11-rc1

2017-03-17 Thread Andrew Duggan
On 03/17/2017 09:57 AM, Benjamin Tissoires wrote: On Wed, Mar 15, 2017 at 2:19 AM, Andrew Duggan wrote: On 03/13/2017 10:10 PM, Cameron Gutman wrote: On 03/13/2017 06:35 PM, Andrew Duggan wrote: On 03/13/2017 06:15 AM, Benjamin Tissoires wrote: [Resending, forgot to add Jiri in CC] On

Re: [PATCH] Input: synaptics-rmi4 - Report slot as inactive when contact is a palm

2017-03-16 Thread Andrew Duggan
On 03/16/2017 05:04 PM, Dmitry Torokhov wrote: On Thu, Mar 16, 2017 at 04:56:31PM -0700, Andrew Duggan wrote: When the firmware identifies a contact as a palm the driver sets the tool type to MT_TOOL_PALM, but sets the slot state as active. Reporting the palm as active results in userspace

[PATCH] Input: synaptics-rmi4 - Report slot as inactive when contact is a palm

2017-03-16 Thread Andrew Duggan
not suppressing palms when switching to the RMI4 driver. This change fixes palm rejection when using the RMI4 driver. Signed-off-by: Andrew Duggan Tested-by: Cameron Gutman --- drivers/input/rmi4/rmi_2d_sensor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input

Re: Synaptics RMI4 touchpad regression in 4.11-rc1

2017-03-14 Thread Andrew Duggan
On 03/13/2017 10:10 PM, Cameron Gutman wrote: On 03/13/2017 06:35 PM, Andrew Duggan wrote: On 03/13/2017 06:15 AM, Benjamin Tissoires wrote: [Resending, forgot to add Jiri in CC] On Mar 13 2017 or thereabouts, Benjamin Tissoires wrote: On Mar 13 2017 or thereabouts, Thorsten Leemhuis wrote

Re: Synaptics RMI4 touchpad regression in 4.11-rc1

2017-03-14 Thread Andrew Duggan
On 03/14/2017 01:14 AM, Thorsten Leemhuis wrote: Lo! On 14.03.2017 06:10, Cameron Gutman wrote: On 03/13/2017 06:35 PM, Andrew Duggan wrote: On 03/13/2017 06:15 AM, Benjamin Tissoires wrote: On Mar 13 2017 or thereabouts, Benjamin Tissoires wrote: On Mar 13 2017 or thereabouts, Thorsten

Re: Synaptics RMI4 touchpad regression in 4.11-rc1

2017-03-13 Thread Andrew Duggan
On 03/13/2017 06:15 AM, Benjamin Tissoires wrote: [Resending, forgot to add Jiri in CC] On Mar 13 2017 or thereabouts, Benjamin Tissoires wrote: On Mar 13 2017 or thereabouts, Thorsten Leemhuis wrote: Lo! On 12.03.2017 02:55, Cameron Gutman wrote: Beginning in 4.11-rc1, it looks like RMI4 i

Re: [PATCH 0/8] PS

2017-03-10 Thread Andrew Duggan
On 03/10/2017 12:12 PM, Dmitry Torokhov wrote: On Fri, Mar 10, 2017 at 10:56:33AM -0800, Andrew Duggan wrote: On 03/10/2017 09:52 AM, Dmitry Torokhov wrote: On Fri, Mar 10, 2017 at 04:57:35PM +0100, Benjamin Tissoires wrote: Hi Dmitry, On Mar 09 2017 or thereabouts, Dmitry Torokhov wrote

Re: [PATCH 0/8] PS

2017-03-10 Thread Andrew Duggan
On 03/10/2017 09:52 AM, Dmitry Torokhov wrote: On Fri, Mar 10, 2017 at 04:57:35PM +0100, Benjamin Tissoires wrote: Hi Dmitry, On Mar 09 2017 or thereabouts, Dmitry Torokhov wrote: Hi, This is refresh of Benjamin's patches trying to bridge PS/2 and SMbus devices for better support of Synaptics

Re: [GIT PULL] HID for 4.11

2017-03-01 Thread Andrew Duggan
On 02/28/2017 09:05 PM, Linus Torvalds wrote: On Tue, Feb 28, 2017 at 7:24 PM, Peter Hutterer wrote: I suspect you're just triggering a bug that wasn't triggered by the ps/2 emulation. you can run linput-debug-events --verbose and have a look at the various state debugging information, that ma

Re: [GIT PULL] HID for 4.11

2017-02-28 Thread Andrew Duggan
On 02/28/2017 04:56 PM, Linus Torvalds wrote: On Mon, Feb 20, 2017 at 8:37 PM, Linus Torvalds wrote: Yeah, so enabling HID_RMI makes my touchpad work again. .. so I just noticed something: it works subtly differently. When I drag something around, I mostly just double-tap and move, and that s

Re: [PATCH] HID: rmi: fallback to generic/multitouch if hid-rmi is not built (was Re: [GIT PULL] HID for 4.11)

2017-02-21 Thread Andrew Duggan
nds hid-mulitouch to the touchpad if CONFIG_HID_RMI is disabled. Sorry, about the oversight. Tested-by: Andrew Duggan Thanks, Andrew From: Jiri Kosina Subject: [PATCH] HID: rmi: fallback to generic/multitouch if hid-rmi is not built Commit 279967a65b32 ("HID: rmi: Handle all Synap

Re: [PATCH] Input: trackpoint: add new trackpoint firmware ID

2017-02-13 Thread Andrew Duggan
On 02/12/2017 02:38 PM, Dmitry Torokhov wrote: On Fri, Feb 10, 2017 at 11:02:21AM +0800, Aaron Ma wrote: Synaptics add new TP firmware ID: 0x2 and 0x3, for now both lower 2 bits are indicated as TP. Change the constant to bitwise values. Hmm, I thought IBM/Lenovo owned trackpoint support... And

Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol

2017-01-12 Thread Andrew Duggan
On 01/11/2017 11:27 AM, Christopher Heiny wrote: On Wed, 2017-01-11 at 18:48 +0100, Benjamin Tissoires wrote: On Jan 11 2017 or thereabouts, Arnd Bergmann wrote: On Wednesday, January 11, 2017 5:28:28 PM CET Benjamin Tissoires wrote: Yep, it was initially written that way, and IIRC there was s

Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol

2017-01-10 Thread Andrew Duggan
On 01/10/2017 04:16 AM, Arnd Bergmann wrote: If CONFIG_INPUT=m, we get a build error for the rmi4-f03 driver, added in linux-4.10: drivers/input/built-in.o: In function `rmi_f03_attention': rmi_f03.c:(.text+0xcfe0): undefined reference to `serio_interrupt' rmi_f03.c:(.text+0xd055): undefined ref

Re: [PATCH v3 1/3] HID: rmi: Make hid-rmi a transport driver for synaptics-rmi4

2017-01-04 Thread Andrew Duggan
Hi Benjamin, On 01/03/2017 07:16 AM, Benjamin Tissoires wrote: From: Andrew Duggan The Synaptics RMI4 driver provides support for RMI4 devices. Instead of duplicating the RMI4 processing code, make hid-rmi a transport driver and register it with the Synaptics RMI4 core. Signed-off-by: Andrew

Re: [PATCH] Input: synaptics-rmi4 - fix debug for sensor clip

2016-12-05 Thread Andrew Duggan
On 12/04/2016 05:04 PM, Nick Dyer wrote: The debug would only ever output zero for the clip information. Signed-off-by: Nick Dyer Reviewed-by: Andrew Duggan --- drivers/input/rmi4/rmi_f12.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/input/rmi4

Re: [PATCH v2 0/7] RMI4 cleanups and switch hid-rmi to rmi_core

2016-12-02 Thread Andrew Duggan
which have gone into production. Andrew Function f03 has been tested in the rmi4-smbus, and the attn data API on a test synaptics board. Cheers, Benjamin Andrew Duggan (3): HID: rmi: Make hid-rmi a transport driver for synaptics-rmi4 HID: rmi: Handle all Synaptics touchpads using hid-rmi H

Re: [PATCH v2 3/7] Input: synaptics-rmi4 - allow to add attention data

2016-12-02 Thread Andrew Duggan
incoming event. Signed-off-by: Benjamin Tissoires Reviewed-by: Andrew Duggan --- no changes in v2 --- drivers/input/rmi4/rmi_driver.c | 49 +++-- include/linux/rmi.h | 11 + 2 files changed, 58 insertions(+), 2 deletions(-) diff --git a

Re: [PATCH v2 4/7] Input: synaptics-rmi4 - store the attn data in the driver

2016-12-02 Thread Andrew Duggan
On 12/02/2016 03:41 AM, Benjamin Tissoires wrote: Now that we have a proper API to set the attention data, there is no point in keeping it in the transport driver. Signed-off-by: Benjamin Tissoires Reviewed-by: Andrew Duggan --- no changes in v2 --- drivers/input/rmi4/rmi_driver.c | 5

Re: [PATCH v2] Input: synaptics-rmi4 - stop scanning PDT after two empty pages

2016-10-26 Thread Andrew Duggan
Reviewed-by: Andrew Duggan --- drivers/input/rmi4/rmi_driver.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/input/rmi4/rmi_driver.c b/drivers/input/rmi4/rmi_driver.c index 4a88312..425bd19 100644 --- a/drivers/input/rmi4/rmi_driver.c +++ b/drivers

Re: [PATCH -next 1/2] Input: synaptics-rmi4 - add support for F55 sensor tuning

2016-10-25 Thread Andrew Duggan
On 10/24/2016 08:13 PM, Guenter Roeck wrote: Hi Andrew, On 10/24/2016 05:59 PM, Andrew Duggan wrote: Hi Guenter, I have a couple of comments below. Thanks a lot for the feedback. On 09/30/2016 08:22 PM, Guenter Roeck wrote: Sensor tuning support is needed to determine the number of

Re: [PATCH -next 2/2] Input: synaptics-rmi4 - Propagate correct number of rx and tx electrodes to F54

2016-10-24 Thread Andrew Duggan
enabled. Fixes: 3bbacb89704fi ("[media] Input: synaptics-rmi4 - add support for F54 ...") Cc: Nick Dyer Cc: Andrew Duggan Cc: Chris Healy Signed-off-by: Guenter Roeck Reviewed-by: Andrew Duggan --- Notes: - The Fixes: SHA might not be accurate if the originating branch is rebased. -

Re: [PATCH -next 1/2] Input: synaptics-rmi4 - add support for F55 sensor tuning

2016-10-24 Thread Andrew Duggan
Hi Guenter, I have a couple of comments below. On 09/30/2016 08:22 PM, Guenter Roeck wrote: Sensor tuning support is needed to determine the number of enabled tx and rx electrodes for use in F54 functions. The number of enabled electrodes is not identical to the total number of electrodes as r

Re: [PATCH v1] Input: synaptics-rmi4 - allow number of PDT pages to be specified

2016-10-24 Thread Andrew Duggan
On 10/24/2016 04:39 PM, Dmitry Torokhov wrote: On Mon, Oct 24, 2016 at 11:55:22PM +0100, Nick Dyer wrote: We have encountered some RMI4 firmwares where there are blank pages in between PDT pages which contain functions. Add a device tree property which can be set to force reading the first N pag

Re: [PATCH] Input: synaptics-rmi4 - Fix error handling in I2C transport driver

2016-10-01 Thread Andrew Duggan
On Sat, Oct 1, 2016, at 10:45 AM, Guenter Roeck wrote: > On 10/01/2016 10:27 AM, Andrew Duggan wrote: > > > > > > On Fri, Sep 30, 2016, at 08:44 PM, Guenter Roeck wrote: > >> On 09/30/2016 04:02 PM, Dmitry Torokhov wrote: > >>> On Fri, Sep 30, 2016

Re: [PATCH] Input: synaptics-rmi4 - Fix error handling in I2C transport driver

2016-10-01 Thread Andrew Duggan
ave their own devm_ versions I would suggest switching to those functions to avoid dealing with unregistering. Registering and unregistering the transport device is a bit more complicated since these functions add and put the rmi_dev device. But, it sounds like we can handle the unregister using dev

Re: [PATCH 07/11] Input: synaptics-rmi4 - f30/f03: Forward mechanical buttons on buttonpads to PS/2 guest

2016-08-30 Thread Andrew Duggan
On 08/30/2016 08:13 AM, Benjamin Tissoires wrote: Hi Andrew, On Aug 26 2016 or thereabouts, Andrew Duggan wrote: Resending as plain text Hi Benjamin, This patch causes standard clickpads without extended buttons to not work. I'll explain some more below. On 08/18/2016 02:24 AM, Ben

Re: [PATCH 04/11] Input: synaptics-rmi4 - add support for F03

2016-08-26 Thread Andrew Duggan
Resending as plain text On 08/18/2016 02:24 AM, Benjamin Tissoires wrote: From: Lyude Paul This adds basic functionality for PS/2 passthrough on Synaptics Touchpads using RMI4 through smbus. Signed-off-by: Lyude Paul Signed-off-by: Benjamin Tissoires Reviewed-by: Andrew Duggan

Re: [PATCH 03/11] Input: synaptics-rmi4 - have only one struct platform data

2016-08-26 Thread Andrew Duggan
_data && pdata->f30_data->disable) + if (pdata && pdata->f30_data.disable) And this one. That's a fairly minor comment and I could see an argument for keeping the checks in the event that the implementation of rmi_get_platform_data() changes. So: Reviewed-b

Re: [PATCH 05/11] Input: synaptics-rmi4 - f03: grab data passed by transport device

2016-08-26 Thread Andrew Duggan
from the driver after the firmware read them will result in invalid data. Which is exactly what Dennis is describing here. Signed-off-by: Dennis Wassenberg Signed-off-by: Benjamin Tissoires Reviewed-by: Andrew Duggan --- drivers/input/rmi4/rmi_f03.c | 37

Re: [PATCH 02/11] Input: serio - store the pt_buttons in the struct serio directly

2016-08-26 Thread Andrew Duggan
- re-route tracksticks buttons on the Lenovo 2015 series") Signed-off-by: Benjamin Tissoires Acked-by: Andrew Duggan --- drivers/input/mouse/psmouse-base.c | 3 +++ drivers/input/mouse/synaptics.c| 19 ++- drivers/input/mouse/synaptics.h| 1 - include/lin

Re: [PATCH 06/11] Input: synaptics-rmi4 - Add rmi_find_function()

2016-08-26 Thread Andrew Duggan
Resending as plain text On 08/18/2016 02:24 AM, Benjamin Tissoires wrote: If a function needs to communicate with an other, it's better to have a way to retrieve this other. Signed-off-by: Benjamin Tissoires Reviewed-by: Andrew Duggan --- drivers/input/rmi4/rmi_driver.c

Re: [PATCH 07/11] Input: synaptics-rmi4 - f30/f03: Forward mechanical buttons on buttonpads to PS/2 guest

2016-08-26 Thread Andrew Duggan
Resending as plain text Hi Benjamin, This patch causes standard clickpads without extended buttons to not work. I'll explain some more below. On 08/18/2016 02:24 AM, Benjamin Tissoires wrote: From: Lyude Paul On the latest series of ThinkPads, the button events for the TrackPoint are repor

[PATCH v2] Input: synaptics-rmi4: Fix register descriptor subpacket map construction

2016-08-22 Thread Andrew Duggan
From: Andrew Duggan The map_offset variable is specific to the register and needs to be reset in the loop. Otherwise, subsequent register's subpacket maps will have their bits set at the wrong index. Signed-off-by: Andrew Duggan Tested-by: Nitin Chaudhary Reviewed-by: Benjamin Tissoire

[PATCH] Input: synaptics-rmi4: Fix register descriptor subpacket map construction

2016-08-18 Thread Andrew Duggan
From: Andrew Duggan The map_offset variable is specific to the register and needs to be reset in the loop. Otherwise, subsequent register's subpacket maps will have their bits set at the wrong index. This results in the max X and Y and the resolution to not be set on some devices which us

Re: [PATCH v3 0/8] Input: synaptics-rmi4: Reimplement functionality from hid-rmi

2016-08-12 Thread Andrew Duggan
. However, if you don't think that issues has been resolved I would recommend skipping that patch instead of holding up the others. Let me know if there is anything else I need to address. Thanks, Andrew On 07/13/2016 11:07 PM, Andrew Duggan wrote: The v3 version of this patch series makes ch

Re: [PATCH v3] HID: rmi: Make hid-rmi a transport driver for synaptics-rmi4

2016-08-10 Thread Andrew Duggan
On 08/10/2016 01:28 AM, Benjamin Tissoires wrote: Hi Andrew, On Jun 24 2016 or thereabouts, Andrew Duggan wrote: The Synaptics RMI4 driver provides support for RMI4 devices. Instead of duplicating the RMI4 processing code, make hid-rmi a transport driver and register it with the Synaptics RMI4

Re: [PATCH v2 2/2] Input: synaptics-rmi4 - add support for F34 device reflash

2016-07-22 Thread Andrew Duggan
Hi Nick, Here are some initial comments on your firmware update patch. The biggest issue I noticed is that this driver only supports F43 version 0. RMI functions can actually have different versions of functions with different register layouts. Our newer devices use F34 version 1. The functio

Re: [PATCH v3 3/8] Input: synaptics-rmi4: Add dribble and palm gesture parameters to device tree

2016-07-22 Thread Andrew Duggan
On 07/22/2016 09:52 AM, Dmitry Torokhov wrote: On Wed, Jul 13, 2016 at 11:08:42PM -0700, Andrew Duggan wrote: Signed-off-by: Andrew Duggan --- This version includes Nick's suggestion of adding force to the device tree parameters so make it obvious that these parameters overwrite the de

Re: [PATCH] Input: synaptics-rmi4: Fix maximum size check for F12 control register 8

2016-07-19 Thread Andrew Duggan
On 07/19/2016 05:00 PM, Dmitry Torokhov wrote: On Tue, Jul 19, 2016 at 04:43:41PM -0700, Andrew Duggan wrote: According to the RMI4 spec the maximum size of F12 control register 8 is 15 bytes. The current code incorrectly reports an error if control 8 is greater then 14. Making sensors with a

[PATCH] Input: synaptics-rmi4: Fix maximum size check for F12 control register 8

2016-07-19 Thread Andrew Duggan
According to the RMI4 spec the maximum size of F12 control register 8 is 15 bytes. The current code incorrectly reports an error if control 8 is greater then 14. Making sensors with a control register 8 with 15 bytes unusable. Signed-off-by: Andrew Duggan Reported-by: Chris Healy Cc: sta

Re: [PATCH v3 1/8] Input: synaptics-rmi4: Use of_get_child_by_name() instead of of_find_node_by_name()

2016-07-18 Thread Andrew Duggan
On 07/18/2016 07:48 AM, Benjamin Tissoires wrote: On Jul 13 2016 or thereabouts, Andrew Duggan wrote: Calling of_find_node_by_name() assumes that the caller has incremented the refcount of the of_node being passed in. Currently, the caller is not incrementing the refcount of the of_node which

[PATCH v3 8/8] Input: synaptics-rmi4: Use the RMI_F11_REL_BYTES define in rmi_f11_rel_pos_report

2016-07-13 Thread Andrew Duggan
The size of relative data in F11 is already defined by RMI_F11_REL_BYTES. Use the define in rmi_f11_rel_pos_report() to be consistent. Signed-off-by: Andrew Duggan Reviewed-by: Nick Dyer --- This is the same as the v2 version. drivers/input/rmi4/rmi_f11.c | 4 ++-- 1 file changed, 2

[PATCH v3 5/8] Input: synaptics-rmi4: Remove pointer to rmi_function in f12_data

2016-07-13 Thread Andrew Duggan
The pointer to struct rmi_function in f12_data is never set and was never used. The fn pointer is also stored in rmi_2d_sensor which is a member of f12_data. Signed-off-by: Andrew Duggan Reviewed-by: Benjamin Tissoires Reviewed-by: Nick Dyer --- This is the same as the v1 version. drivers

[PATCH v3 7/8] Input: synaptics-rmi4: Handle incomplete input data

2016-07-13 Thread Andrew Duggan
hey expect. Signed-off-by: Andrew Duggan --- In the v2 version I moved the RMI_F11_REL_BYTES hunk to patch 8 and fixed the spelling of f_state. This is the same as the v2 version. drivers/input/rmi4/rmi_f11.c | 54 drivers/input/rmi4/rmi_

[PATCH v3 4/8] Input: synaptics-rmi4: Add support for controlling dribble packets in F12

2016-07-13 Thread Andrew Duggan
Implements reading and setting the dribble bit in F12's control registers. Signed-off-by: Andrew Duggan Acked-by: Benjamin Tissoires --- This is the same as V1. drivers/input/rmi4/rmi_f12.c | 74 +++- 1 file changed, 73 insertions(+), 1 del

[PATCH v3 6/8] Input: synaptics-rmi4: Remove unneeded variable

2016-07-13 Thread Andrew Duggan
Remove the data_base_addr_offset variable in rmi_f11_attention(). The f11 data is read as a single block so there is no need to store an offset to the data address. Signed-off-by: Andrew Duggan Reviewed-by: Benjamin Tissoires Reviewed-by: Nick Dyer --- This is the same as the v1 version

[PATCH v3 1/8] Input: synaptics-rmi4: Use of_get_child_by_name() instead of of_find_node_by_name()

2016-07-13 Thread Andrew Duggan
use of_get_child_by_name() which does not call put on the of_node. Signed-off-by: Andrew Duggan --- drivers/input/rmi4/rmi_bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/rmi4/rmi_bus.c b/drivers/input/rmi4/rmi_bus.c index b368b05..253df96 100644 --- a

[PATCH v3 3/8] Input: synaptics-rmi4: Add dribble and palm gesture parameters to device tree

2016-07-13 Thread Andrew Duggan
Signed-off-by: Andrew Duggan --- This version includes Nick's suggestion of adding force to the device tree parameters so make it obvious that these parameters overwrite the default values set in the firware config. .../devicetree/bindings/input/rmi4/rmi_2d_sensor.txt

[PATCH v3 0/8] Input: synaptics-rmi4: Reimplement functionality from hid-rmi

2016-07-13 Thread Andrew Duggan
to clarify that these parameters overwrite the default value set in the firmware configuration. Thanks, Andrew Andrew Duggan (8): Input: synaptics-rmi4: Use of_get_child_by_name() instead of of_find_node_by_name() Input: synaptics-rmi4: Add parameters for dribble packets and palm dete

[PATCH v3 2/8] Input: synaptics-rmi4: Add parameters for dribble packets and palm detect gesture

2016-07-13 Thread Andrew Duggan
: rmi: disable dribble packets on Synaptics touchpads") For more information on the palm detect gesture: Commit f097deef59a6 ("HID: rmi: disable palm detect gesture when present") Signed-off-by: Andrew Duggan Reviewed-by: Benjamin Tissoires --- V2 changes dribble and palm_detect to typ

Re: [PATCH v6 10/11] Input: synaptics-rmi4 - add support for F54 diagnostics

2016-07-01 Thread Andrew Duggan
On 06/30/2016 10:38 AM, Nick Dyer wrote: Function 54 implements access to various RMI4 diagnostic features. This patch adds support for retrieving this data. It registers a V4L2 device to output the data to user space. Signed-off-by: Nick Dyer Tested-by: Andrew Duggan --- drivers/input

Re: [PATCH v2 3/8] Input: synaptics-rmi4: Add dribble and palm gesture parameters to device tree

2016-06-28 Thread Andrew Duggan
Hi Rob, On 06/28/2016 01:56 PM, Rob Herring wrote: On Fri, Jun 24, 2016 at 05:18:37PM -0700, Andrew Duggan wrote: Signed-off-by: Andrew Duggan --- .../devicetree/bindings/input/rmi4/rmi_2d_sensor.txt | 4 drivers/input/rmi4/rmi_2d_sensor.c| 11

Re: [PATCH v3] Input: synaptics-rmi4: Support regulator supplies

2016-06-24 Thread Andrew Duggan
On 06/10/2016 10:25 PM, Bjorn Andersson wrote: From: Bjorn Andersson Support the two supplies - vdd and vio - to make it possible to control power to the Synaptics chip. Signed-off-by: Bjorn Andersson Signed-off-by: Bjorn Andersson Reviewed-by: Andrew Duggan --- .../devicetree

[PATCH v3] HID: rmi: Make hid-rmi a transport driver for synaptics-rmi4

2016-06-24 Thread Andrew Duggan
The Synaptics RMI4 driver provides support for RMI4 devices. Instead of duplicating the RMI4 processing code, make hid-rmi a transport driver and register it with the Synaptics RMI4 core. Signed-off-by: Andrew Duggan --- In v3 I went ahead and added RMI4_F12 to the Kconfig so we will have it

[PATCH v2 8/8] Input: synaptics-rmi4: Use the RMI_F11_REL_BYTES define in rmi_f11_rel_pos_report

2016-06-24 Thread Andrew Duggan
The size of relative data in F11 is already defined by RMI_F11_REL_BYTES. Use the define in rmi_f11_rel_pos_report() to be consistent. Signed-off-by: Andrew Duggan --- drivers/input/rmi4/rmi_f11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/rmi4/rmi_f11

[PATCH v2 7/8] Input: synaptics-rmi4: Handle incomplete input data

2016-06-24 Thread Andrew Duggan
hey expect. Signed-off-by: Andrew Duggan --- drivers/input/rmi4/rmi_f11.c | 54 drivers/input/rmi4/rmi_f12.c | 23 ++- drivers/input/rmi4/rmi_f30.c | 4 3 files changed, 61 insertions(+), 20 deletions(-) diff --git a/drivers/

[PATCH v2 6/8] Input: synaptics-rmi4: Remove unneeded variable

2016-06-24 Thread Andrew Duggan
Remove the data_base_addr_offset variable in rmi_f11_attention(). The f11 data is read as a single block so there is no need to store an offset to the data address. Signed-off-by: Andrew Duggan --- drivers/input/rmi4/rmi_f11.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff

[PATCH v2 5/8] Input: synaptics-rmi4: Remove pointer to rmi_function in f12_data

2016-06-24 Thread Andrew Duggan
The pointer to struct rmi_function in f12_data is never set and was never used. The fn pointer is also stored in rmi_2d_sensor which is a member of f12_data. Signed-off-by: Andrew Duggan --- drivers/input/rmi4/rmi_f12.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/rmi4

[PATCH v2 4/8] Input: synaptics-rmi4: Add support for controlling dribble packets in F12

2016-06-24 Thread Andrew Duggan
Implements reading and setting the dribble bit in F12's control registers. Signed-off-by: Andrew Duggan --- drivers/input/rmi4/rmi_f12.c | 74 +++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/drivers/input/rmi4/rmi_f12.c b/drivers/

[PATCH v2 3/8] Input: synaptics-rmi4: Add dribble and palm gesture parameters to device tree

2016-06-24 Thread Andrew Duggan
Signed-off-by: Andrew Duggan --- .../devicetree/bindings/input/rmi4/rmi_2d_sensor.txt | 4 drivers/input/rmi4/rmi_2d_sensor.c| 11 +++ 2 files changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/input/rmi4/rmi_2d_sensor.txt

[PATCH v2 1/8] Input: synaptics-rmi4: Increment the refcount of the transport dev's of_node

2016-06-24 Thread Andrew Duggan
Increment the refcount for the transport device's of_node before calling of_find_node_by_name(). Since of_find_node_by_name() assumes the refcount was incremented by the caller and calls of_node_put() when it is done. Signed-off-by: Andrew Duggan --- drivers/input/rmi4/rmi_bus.c | 5 +++

[PATCH v2 2/8] Input: synaptics-rmi4: Add parameters for dribble packets and palm detect gesture

2016-06-24 Thread Andrew Duggan
: rmi: disable dribble packets on Synaptics touchpads") For more information on the palm detect gesture: Commit f097deef59a6 ("HID: rmi: disable palm detect gesture when present") Signed-off-by: Andrew Duggan --- drivers/input/rmi4/rmi_2d_sensor.h | 2 ++ drivers/input/rmi4/

[PATCH v2 0/8] Input: synaptics-rmi4: Reimplement functionality from hid-rmi

2016-06-24 Thread Andrew Duggan
patch. Andrew Duggan (8): Input: synaptics-rmi4: Increment the refcount of the transport dev's of_node Input: synaptics-rmi4: Add parameters for dribble packets and palm detect gesture Input: synaptics-rmi4: Add dribble and palm gesture parameters to device tree Input: syna

Re: [PATCH v2] HID: rmi: Make hid-rmi a transport driver for synaptics-rmi4

2016-06-15 Thread Andrew Duggan
On 06/15/2016 02:41 AM, Benjamin Tissoires wrote: On Jun 15 2016 or thereabouts, Jiri Kosina wrote: On Fri, 3 Jun 2016, Andrew Duggan wrote: The Synaptics RMI4 driver provides support for RMI4 devices. Instead of duplicating the RMI4 processing code, make hid-rmi a transport driver and

Re: [PATCH v2] HID: rmi: Make hid-rmi a transport driver for synaptics-rmi4

2016-06-15 Thread Andrew Duggan
On 06/15/2016 02:54 AM, Benjamin Tissoires wrote: On Jun 03 2016 or thereabouts, Andrew Duggan wrote: The Synaptics RMI4 driver provides support for RMI4 devices. Instead of duplicating the RMI4 processing code, make hid-rmi a transport driver and register it with the Synaptics RMI4 core

Re: [PATCH 3/7] Input: synaptics-rmi4: Add dribble and palm gesture parameters to devicetree

2016-06-07 Thread Andrew Duggan
Hi Mark, Thanks for reviewing. On 06/03/2016 11:57 AM, Mark Rutland wrote: On Fri, Jun 03, 2016 at 11:40:28AM -0700, Andrew Duggan wrote: Signed-off-by: Andrew Duggan --- .../devicetree/bindings/input/rmi4/rmi_2d_sensor.txt | 5 + drivers/input/rmi4/rmi_2d_sensor.c

[PATCH 5/7] Input: synaptics-rmi4: Remove pointer to rmi_function in f12_data

2016-06-03 Thread Andrew Duggan
The pointer to struct rmi_function in f12_data is never set and was never used. The fn pointer is also stored in rmi_2d_sensor which is a member of f12_data. Signed-off-by: Andrew Duggan --- drivers/input/rmi4/rmi_f12.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/rmi4

[PATCH 3/7] Input: synaptics-rmi4: Add dribble and palm gesture parameters to devicetree

2016-06-03 Thread Andrew Duggan
Signed-off-by: Andrew Duggan --- .../devicetree/bindings/input/rmi4/rmi_2d_sensor.txt | 5 + drivers/input/rmi4/rmi_2d_sensor.c | 14 ++ 2 files changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/input/rmi4/rmi_2d_sensor.txt

[PATCH 7/7] Input: synaptics-rmi4: Handle incomplete input data

2016-06-03 Thread Andrew Duggan
hey expect. Signed-off-by: Andrew Duggan --- drivers/input/rmi4/rmi_f11.c | 58 drivers/input/rmi4/rmi_f12.c | 23 +- drivers/input/rmi4/rmi_f30.c | 4 +++ 3 files changed, 63 insertions(+), 22 deletions(-) diff --git a/drivers/input/rm

[PATCH v2] HID: rmi: Make hid-rmi a transport driver for synaptics-rmi4

2016-06-03 Thread Andrew Duggan
The Synaptics RMI4 driver provides support for RMI4 devices. Instead of duplicating the RMI4 processing code, make hid-rmi a transport driver and register it with the Synaptics RMI4 core. Signed-off-by: Andrew Duggan --- Here is the updated version of the hid-rmi patch. This patch along with the

[PATCH 6/7] Input: synaptics-rmi4: Remove unneeded variable

2016-06-03 Thread Andrew Duggan
Remove the data_base_addr_offset variable in rmi_f11_attention(). The f11 data is read as a single block so there is no need to store an offset to the data address. Signed-off-by: Andrew Duggan --- drivers/input/rmi4/rmi_f11.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff

[PATCH 2/7] Input: synaptics-rmi4: Add parameters for dribble packets and palm detect gesture

2016-06-03 Thread Andrew Duggan
: rmi: disable dribble packets on Synaptics touchpads") For more information on the palm detect gesture: Commit f097deef59a6 ("HID: rmi: disable palm detect gesture when present") Signed-off-by: Andrew Duggan --- drivers/input/rmi4/rmi_2d_sensor.h | 2 ++ drivers/input/rmi4/

[PATCH 4/7] Input: synaptics-rmi4: Add support for controlling dribble packets in F12

2016-06-03 Thread Andrew Duggan
Implements reading and setting the dribble bit in F12's control registers. Signed-off-by: Andrew Duggan --- drivers/input/rmi4/rmi_f12.c | 74 +++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/drivers/input/rmi4/rmi_f12.c b/drivers/

[PATCH 0/7] Input: synaptics-rmi4: Reimplement functionality from hid-rmi

2016-06-03 Thread Andrew Duggan
the feedback in the message: https://lkml.org/lkml/2016/4/12/434 Andrew Duggan (7): Input: synaptics-rmi4: Increment the refcount of the transport dev's of_node Input: synaptics-rmi4: Add parameters for dribble packets and palm detect gesture Input: synaptics-rmi4: Add dribble and

[PATCH 1/7] Input: synaptics-rmi4: Increment the refcount of the transport dev's of_node

2016-06-03 Thread Andrew Duggan
Increment the refcount for the transport device's of_node before calling of_find_node_by_name(). Since of_find_node_by_name() assumes the refcount was incremented by the caller and calls of_node_put() when it is done. Signed-off-by: Andrew Duggan --- drivers/input/rmi4/rmi_bus.c | 5 +++

Re: [PATCH v2 0/3] input: rmi4: Regulator supply support

2016-05-16 Thread Andrew Duggan
On 05/13/2016 03:29 PM, Bjorn Andersson wrote: On Thu 12 May 17:52 PDT 2016, Andrew Duggan wrote: On 05/11/2016 08:05 PM, Bjorn Andersson wrote: On Wed 11 May 16:30 PDT 2016, Andrew Duggan wrote: Hi Bjorn, On 05/10/2016 08:49 AM, Bjorn Andersson wrote: [..] So either we duplicate the

Re: [PATCH v2 0/3] input: rmi4: Regulator supply support

2016-05-12 Thread Andrew Duggan
On 05/11/2016 08:05 PM, Bjorn Andersson wrote: On Wed 11 May 16:30 PDT 2016, Andrew Duggan wrote: Hi Bjorn, On 05/10/2016 08:49 AM, Bjorn Andersson wrote: [..] So either we duplicate the regulator support in spi/i2c or we make them optional in the core driver. Sounds like you prefer the

Re: [PATCH v2 0/3] input: rmi4: Regulator supply support

2016-05-11 Thread Andrew Duggan
Hi Bjorn, On 05/10/2016 08:49 AM, Bjorn Andersson wrote: On Mon 09 May 17:36 PDT 2016, Andrew Duggan wrote: Hi Bjorn, On 05/06/2016 09:40 PM, Bjorn Andersson wrote: The first version of the regulator support patch suffered from being implemented in the transport driver, as a work around for

Re: [PATCH v2 0/3] input: rmi4: Regulator supply support

2016-05-09 Thread Andrew Duggan
Hi Bjorn, On 05/06/2016 09:40 PM, Bjorn Andersson wrote: The first version of the regulator support patch suffered from being implemented in the transport driver, as a work around for resource availability racing (EPROBE_DEFER of the core driver) with the interrupt handler. After reconsidering

Re: [PATCH] Input: synaptics-rmi4: Support regulator supplies

2016-05-05 Thread Andrew Duggan
Hi Bjorn, On 04/21/2016 03:37 PM, Bjorn Andersson wrote: On Thu 31 Mar 18:47 PDT 2016, Andrew Duggan wrote: On 03/31/2016 12:14 PM, Bjorn Andersson wrote: On Thu 31 Mar 11:19 PDT 2016, Dmitry Torokhov wrote: Hi Bjorn, On Wed, Mar 30, 2016 at 09:57:29AM -0700, Bjorn Andersson wrote: From

Re: [PATCH] HID: rmi: Make hid-rmi a transport driver for synaptics-rmi4

2016-04-13 Thread Andrew Duggan
Hi Benjamin, On 04/12/2016 07:25 AM, Benjamin Tissoires wrote: On Mar 21 2016 or thereabouts, Andrew Duggan wrote: The Synaptics RMI4 driver provides support for RMI4 devices. Instead of duplicating the RMI4 processing code, make hid-rmi a transport driver and register it with the Synaptics

Re: [PATCH] Input: synaptics-rmi4: Support regulator supplies

2016-03-31 Thread Andrew Duggan
On 03/31/2016 12:14 PM, Bjorn Andersson wrote: On Thu 31 Mar 11:19 PDT 2016, Dmitry Torokhov wrote: Hi Bjorn, On Wed, Mar 30, 2016 at 09:57:29AM -0700, Bjorn Andersson wrote: From: Bjorn Andersson Support the two supplies - vdd and vio - to make it possible to control power to the Synaptics

[PATCH] HID: rmi: Make hid-rmi a transport driver for synaptics-rmi4

2016-03-21 Thread Andrew Duggan
The Synaptics RMI4 driver provides support for RMI4 devices. Instead of duplicating the RMI4 processing code, make hid-rmi a transport driver and register it with the Synaptics RMI4 core. Signed-off-by: Andrew Duggan --- This is the patch which was originally submitted as part of the Synaptics

  1   2   3   >