Re: [PATCH v1 07/10] Input: atmel_mxt_ts - zero terminate config firmware file

2018-07-24 Thread Nick Dyer
On Mon, Jul 23, 2018 at 03:35:34PM -0700, Dmitry Torokhov wrote: > On Fri, Jul 20, 2018 at 10:51:19PM +0100, Nick Dyer wrote: > > From: Nick Dyer > > > > We use sscanf to parse the configuration file, so it's necessary to zero > > terminate the configuration otherwise

Re: [PATCH v1 07/10] Input: atmel_mxt_ts - zero terminate config firmware file

2018-07-24 Thread Nick Dyer
On Mon, Jul 23, 2018 at 03:35:34PM -0700, Dmitry Torokhov wrote: > On Fri, Jul 20, 2018 at 10:51:19PM +0100, Nick Dyer wrote: > > From: Nick Dyer > > > > We use sscanf to parse the configuration file, so it's necessary to zero > > terminate the configuration otherwise

[PATCH v1 08/10] Input: atmel_mxt_ts - don't report zero pressure from T9

2018-07-20 Thread Nick Dyer
From: Nick Dyer If T9.CTRL DISAMP is set, then pressure is reported as zero. This means some app layers (eg tslib) will ignore the contact. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/input/touchscreen

[PATCH v1 04/10] Input: atmel_mxt_ts - remove unnecessary debug on ENOMEM

2018-07-20 Thread Nick Dyer
From: Nick Dyer Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index dcafb812ee7e..92661aa910ae 100644

[PATCH v1 09/10] Input: atmel_mxt_ts - tool type is ignored when slot is closed

2018-07-20 Thread Nick Dyer
From: Nick Dyer input_mt_report_slot_state() ignores the tool when the slot is closed. Remove the tool type from these function calls, which has caused a bit of confusion. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH v1 07/10] Input: atmel_mxt_ts - zero terminate config firmware file

2018-07-20 Thread Nick Dyer
From: Nick Dyer We use sscanf to parse the configuration file, so it's necessary to zero terminate the configuration otherwise a truncated file can cause the parser to run off into uninitialised memory. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 36

[PATCH v1 10/10] Input: atmel_mxt_ts - move completion to after config crc is updated

2018-07-20 Thread Nick Dyer
From: Nick Dyer Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index c31af790ef84..9f296a66c94e 100644

[PATCH v1 08/10] Input: atmel_mxt_ts - don't report zero pressure from T9

2018-07-20 Thread Nick Dyer
From: Nick Dyer If T9.CTRL DISAMP is set, then pressure is reported as zero. This means some app layers (eg tslib) will ignore the contact. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/input/touchscreen

[PATCH v1 04/10] Input: atmel_mxt_ts - remove unnecessary debug on ENOMEM

2018-07-20 Thread Nick Dyer
From: Nick Dyer Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index dcafb812ee7e..92661aa910ae 100644

[PATCH v1 09/10] Input: atmel_mxt_ts - tool type is ignored when slot is closed

2018-07-20 Thread Nick Dyer
From: Nick Dyer input_mt_report_slot_state() ignores the tool when the slot is closed. Remove the tool type from these function calls, which has caused a bit of confusion. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH v1 07/10] Input: atmel_mxt_ts - zero terminate config firmware file

2018-07-20 Thread Nick Dyer
From: Nick Dyer We use sscanf to parse the configuration file, so it's necessary to zero terminate the configuration otherwise a truncated file can cause the parser to run off into uninitialised memory. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 36

[PATCH v1 10/10] Input: atmel_mxt_ts - move completion to after config crc is updated

2018-07-20 Thread Nick Dyer
From: Nick Dyer Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index c31af790ef84..9f296a66c94e 100644

[PATCH v1 01/10] Input: atmel_mxt_ts - only use first T9 instance

2018-07-20 Thread Nick Dyer
From: Nick Dyer The driver only registers one input device, which uses the screen parameters from the first T9 instance. The first T63 instance also uses those parameters. It is incorrect to send input reports from the second instances of these objects if they are enabled: the input scaling

[PATCH v1 02/10] Input: atmel_mxt_ts - use BIT() macro everywhere

2018-07-20 Thread Nick Dyer
From: Nick Dyer Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 36 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 48c5ccab00a0

[PATCH v1 06/10] Input: atmel_mxt_ts - refactor config update code to add context struct

2018-07-20 Thread Nick Dyer
From: Nick Dyer Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 108 --- 1 file changed, 56 insertions(+), 52 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 560d4997ef8c

[PATCH v1 03/10] Input: atmel_mxt_ts - remove duplicate setup of ABS_MT_PRESSURE

2018-07-20 Thread Nick Dyer
From: Nick Dyer Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 9555947a2d46..dcafb812ee7e 100644 --- a/drivers/input

[PATCH v1 06/10] Input: atmel_mxt_ts - refactor config update code to add context struct

2018-07-20 Thread Nick Dyer
From: Nick Dyer Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 108 --- 1 file changed, 56 insertions(+), 52 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 560d4997ef8c

[PATCH v1 03/10] Input: atmel_mxt_ts - remove duplicate setup of ABS_MT_PRESSURE

2018-07-20 Thread Nick Dyer
From: Nick Dyer Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 9555947a2d46..dcafb812ee7e 100644 --- a/drivers/input

[PATCH v1 01/10] Input: atmel_mxt_ts - only use first T9 instance

2018-07-20 Thread Nick Dyer
From: Nick Dyer The driver only registers one input device, which uses the screen parameters from the first T9 instance. The first T63 instance also uses those parameters. It is incorrect to send input reports from the second instances of these objects if they are enabled: the input scaling

[PATCH v1 02/10] Input: atmel_mxt_ts - use BIT() macro everywhere

2018-07-20 Thread Nick Dyer
From: Nick Dyer Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 36 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 48c5ccab00a0

[PATCH v1 05/10] Input: atmel_mxt_ts - config CRC may start at T71

2018-07-20 Thread Nick Dyer
From: Nick Dyer On devices with the T71 object, the config CRC will start there, rather than at T7. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 34 +++- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/drivers/input/touchscreen

[PATCH v1 05/10] Input: atmel_mxt_ts - config CRC may start at T71

2018-07-20 Thread Nick Dyer
From: Nick Dyer On devices with the T71 object, the config CRC will start there, rather than at T7. Signed-off-by: Nick Dyer --- drivers/input/touchscreen/atmel_mxt_ts.c | 34 +++- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/drivers/input/touchscreen

Re: [PATCH v2 1/2] Input: atmel_mxt_ts: Add support for optional regulators.

2018-07-19 Thread Nick Dyer
On Wed, Jul 18, 2018 at 06:21:30PM +0200, Paweł Chmiel wrote: > On Tuesday, July 17, 2018 10:00:05 PM CEST Nick Dyer wrote: > > On Tue, Jul 17, 2018 at 08:16:25PM +0200, Paweł Chmiel wrote: > > > This patch adds optional regulators, which can be used to power > > > up

Re: [PATCH v2 1/2] Input: atmel_mxt_ts: Add support for optional regulators.

2018-07-19 Thread Nick Dyer
On Wed, Jul 18, 2018 at 06:21:30PM +0200, Paweł Chmiel wrote: > On Tuesday, July 17, 2018 10:00:05 PM CEST Nick Dyer wrote: > > On Tue, Jul 17, 2018 at 08:16:25PM +0200, Paweł Chmiel wrote: > > > This patch adds optional regulators, which can be used to power > > > up

Re: [PATCH v2 1/2] Input: atmel_mxt_ts: Add support for optional regulators.

2018-07-17 Thread Nick Dyer
On Tue, Jul 17, 2018 at 08:16:25PM +0200, Paweł Chmiel wrote: > This patch adds optional regulators, which can be used to power > up touchscreen. After enabling regulators, we need to wait 150msec. > This value is taken from official driver. > > It was tested on Samsung Galaxy i9000 (based on

Re: [PATCH v2 1/2] Input: atmel_mxt_ts: Add support for optional regulators.

2018-07-17 Thread Nick Dyer
On Tue, Jul 17, 2018 at 08:16:25PM +0200, Paweł Chmiel wrote: > This patch adds optional regulators, which can be used to power > up touchscreen. After enabling regulators, we need to wait 150msec. > This value is taken from official driver. > > It was tested on Samsung Galaxy i9000 (based on

[PATCH v1] ARM: dts: imx51-zii-rdu1: correct touchscreen axis inversion

2018-06-28 Thread Nick Dyer
The RMI4 touchscreen driver applied inversion and axis swap in the wrong order, violating the DT binding for those properties. This was fixed in 645a397, so correct the RDU1 DT to apply the inversion to the correct axis. Tested on Zii RDU1 00-5105-30 rev B Signed-off-by: Nick Dyer --- arch/arm

[PATCH v1] ARM: dts: imx51-zii-rdu1: correct touchscreen axis inversion

2018-06-28 Thread Nick Dyer
The RMI4 touchscreen driver applied inversion and axis swap in the wrong order, violating the DT binding for those properties. This was fixed in 645a397, so correct the RDU1 DT to apply the inversion to the correct axis. Tested on Zii RDU1 00-5105-30 rev B Signed-off-by: Nick Dyer --- arch/arm

[PATCH v5] ARM: dts: imx51-zii-rdu1: fix touchscreen pinctrl

2018-06-21 Thread Nick Dyer
. Signed-off-by: Nick Dyer Fixes: ceef0396f367 ("ARM: dts: imx: add ZII RDU1 board") Cc: # 4.15+ Reviewed-by: Fabio Estevam Tested-by: Chris Healy --- Changes in v5: - Add tested by Chris Healy Changes in v4: - Add reviewed by Fabio Changes in v3: - Update commit message to add source of

[PATCH v5] ARM: dts: imx51-zii-rdu1: fix touchscreen pinctrl

2018-06-21 Thread Nick Dyer
. Signed-off-by: Nick Dyer Fixes: ceef0396f367 ("ARM: dts: imx: add ZII RDU1 board") Cc: # 4.15+ Reviewed-by: Fabio Estevam Tested-by: Chris Healy --- Changes in v5: - Add tested by Chris Healy Changes in v4: - Add reviewed by Fabio Changes in v3: - Update commit message to add source of

[PATCH v4] ARM: dts: imx51-zii-rdu1: fix touchscreen pinctrl

2018-06-20 Thread Nick Dyer
. Signed-off-by: Nick Dyer Fixes: ceef0396f367 ("ARM: dts: imx: add ZII RDU1 board") Cc: # 4.15+ Reviewed-by: Fabio Estevam --- Changes in v4: - Add reviewed by Fabio Changes in v3: - Update commit message to add source of 0x4 value, fixes tag and CC stable Changes in v2: - Use hex, only

[PATCH v4] ARM: dts: imx51-zii-rdu1: fix touchscreen pinctrl

2018-06-20 Thread Nick Dyer
. Signed-off-by: Nick Dyer Fixes: ceef0396f367 ("ARM: dts: imx: add ZII RDU1 board") Cc: # 4.15+ Reviewed-by: Fabio Estevam --- Changes in v4: - Add reviewed by Fabio Changes in v3: - Update commit message to add source of 0x4 value, fixes tag and CC stable Changes in v2: - Use hex, only

[PATCH v3] ARM: dts: imx51-zii-rdu1: fix touchscreen pinctrl

2018-06-20 Thread Nick Dyer
. Signed-off-by: Nick Dyer Fixes: ceef0396f367 ("ARM: dts: imx: add ZII RDU1 board") Cc: # 4.15+ --- Changes in v3: - Update commit message to add source of 0x4 value, fixes tag and CC stable Changes in v2: - Use hex, only alter IRQ line config arch/arm/boot/dts/imx51-zii-rdu1.dts | 2

[PATCH v3] ARM: dts: imx51-zii-rdu1: fix touchscreen pinctrl

2018-06-20 Thread Nick Dyer
. Signed-off-by: Nick Dyer Fixes: ceef0396f367 ("ARM: dts: imx: add ZII RDU1 board") Cc: # 4.15+ --- Changes in v3: - Update commit message to add source of 0x4 value, fixes tag and CC stable Changes in v2: - Use hex, only alter IRQ line config arch/arm/boot/dts/imx51-zii-rdu1.dts | 2

[PATCH v2] ARM: dts: imx51-zii-rdu1: fix touchscreen pinctrl

2018-06-20 Thread Nick Dyer
The pinctrl settings were incorrect for the touchscreen interrupt line, causing an interrupt storm. This change has been tested with both the atmel_mxt_ts and RMI4 drivers on the RDU1 units. [v2: Use hex, only alter IRQ line config] Signed-off-by: Nick Dyer --- arch/arm/boot/dts/imx51-zii-rdu1

[PATCH v2] ARM: dts: imx51-zii-rdu1: fix touchscreen pinctrl

2018-06-20 Thread Nick Dyer
The pinctrl settings were incorrect for the touchscreen interrupt line, causing an interrupt storm. This change has been tested with both the atmel_mxt_ts and RMI4 drivers on the RDU1 units. [v2: Use hex, only alter IRQ line config] Signed-off-by: Nick Dyer --- arch/arm/boot/dts/imx51-zii-rdu1

[PATCH v1] ARM: dts: imx51-zii-rdu1: fix touchscreen pinctrl

2018-06-19 Thread Nick Dyer
The pinctrl settings were incorrect for the touchscreen interrupt line, causing an interrupt storm. This change has been tested with both the atmel_mxt_ts and RMI4 drivers on the RDU1 units. Signed-off-by: Nick Dyer --- arch/arm/boot/dts/imx51-zii-rdu1.dts | 4 ++-- 1 file changed, 2 insertions

[PATCH v1] ARM: dts: imx51-zii-rdu1: fix touchscreen pinctrl

2018-06-19 Thread Nick Dyer
The pinctrl settings were incorrect for the touchscreen interrupt line, causing an interrupt storm. This change has been tested with both the atmel_mxt_ts and RMI4 drivers on the RDU1 units. Signed-off-by: Nick Dyer --- arch/arm/boot/dts/imx51-zii-rdu1.dts | 4 ++-- 1 file changed, 2 insertions

Re: [PATCH] Input: atmel_mxt_ts - fix reset-gpio for level based irqs

2018-04-21 Thread Nick Dyer
On Fri, Apr 20, 2018 at 09:42:07PM +0200, Sebastian Reichel wrote: > On Fri, Apr 20, 2018 at 02:44:02PM -0300, Ezequiel Garcia wrote: > > Hi Sebastian, > > > > On Fri, 2018-04-20 at 19:24 +0200, Sebastian Reichel wrote: > > > The current reset-gpio support triggers an interrupt storm on platforms

Re: [PATCH] Input: atmel_mxt_ts - fix reset-gpio for level based irqs

2018-04-21 Thread Nick Dyer
On Fri, Apr 20, 2018 at 09:42:07PM +0200, Sebastian Reichel wrote: > On Fri, Apr 20, 2018 at 02:44:02PM -0300, Ezequiel Garcia wrote: > > Hi Sebastian, > > > > On Fri, 2018-04-20 at 19:24 +0200, Sebastian Reichel wrote: > > > The current reset-gpio support triggers an interrupt storm on platforms

Re: [PATCHv1] Input: atmel_mxt_ts - fix the firmware update

2018-03-23 Thread Nick Dyer
It also has the benefit that by reading the information block and the object table into a contiguous region of memory, we can verify the checksum at probe time. This means we make sure that we are indeed talking to a chip that supports object protocol correctly. Signed-off-by: Nick Dyer <nic

Re: [PATCHv1] Input: atmel_mxt_ts - fix the firmware update

2018-03-23 Thread Nick Dyer
It also has the benefit that by reading the information block and the object table into a contiguous region of memory, we can verify the checksum at probe time. This means we make sure that we are indeed talking to a chip that supports object protocol correctly. Signed-off-by: Nick Dyer Acked-by: Be

Re: [PATCH 01/14] Input: atmel_mxt_ts - do not pass suspend mode in platform data

2018-03-17 Thread Nick Dyer
On Sat, Mar 17, 2018 at 10:42:40AM -0700, Dmitry Torokhov wrote: > On Fri, Mar 16, 2018 at 08:40:02PM +0000, Nick Dyer wrote: > > On Thu, Mar 15, 2018 at 04:56:21PM -0700, Dmitry Torokhov wrote: > > > Ah, OK, I see. I would really like to drop this > > > pdata->suspen

Re: [PATCH 01/14] Input: atmel_mxt_ts - do not pass suspend mode in platform data

2018-03-17 Thread Nick Dyer
On Sat, Mar 17, 2018 at 10:42:40AM -0700, Dmitry Torokhov wrote: > On Fri, Mar 16, 2018 at 08:40:02PM +0000, Nick Dyer wrote: > > On Thu, Mar 15, 2018 at 04:56:21PM -0700, Dmitry Torokhov wrote: > > > Ah, OK, I see. I would really like to drop this > > > pdata->suspen

Re: [PATCH 01/14] Input: atmel_mxt_ts - do not pass suspend mode in platform data

2018-03-16 Thread Nick Dyer
On Thu, Mar 15, 2018 at 04:56:21PM -0700, Dmitry Torokhov wrote: > On Wed, Mar 14, 2018 at 08:51:24PM +0000, Nick Dyer wrote: > > On Mon, Mar 12, 2018 at 12:08:54PM -0700, Dmitry Torokhov wrote: > > > The way we are supposed to put controller to sleep and wake it up doe

Re: [PATCH 01/14] Input: atmel_mxt_ts - do not pass suspend mode in platform data

2018-03-16 Thread Nick Dyer
On Thu, Mar 15, 2018 at 04:56:21PM -0700, Dmitry Torokhov wrote: > On Wed, Mar 14, 2018 at 08:51:24PM +0000, Nick Dyer wrote: > > On Mon, Mar 12, 2018 at 12:08:54PM -0700, Dmitry Torokhov wrote: > > > The way we are supposed to put controller to sleep and wake it up doe

Re: [PATCH 14/14] Input: atmel_mxt_ts - remove platform data support

2018-03-16 Thread Nick Dyer
On Thu, Mar 15, 2018 at 05:06:14PM -0700, Dmitry Torokhov wrote: > On Wed, Mar 14, 2018 at 08:59:38PM +0000, Nick Dyer wrote: > > On Mon, Mar 12, 2018 at 12:09:07PM -0700, Dmitry Torokhov wrote: > > > - /* > > > - * Ignore ACPI devices r

Re: [PATCH 14/14] Input: atmel_mxt_ts - remove platform data support

2018-03-16 Thread Nick Dyer
On Thu, Mar 15, 2018 at 05:06:14PM -0700, Dmitry Torokhov wrote: > On Wed, Mar 14, 2018 at 08:59:38PM +0000, Nick Dyer wrote: > > On Mon, Mar 12, 2018 at 12:09:07PM -0700, Dmitry Torokhov wrote: > > > - /* > > > - * Ignore ACPI devices r

Re: [PATCH 01/14] Input: atmel_mxt_ts - do not pass suspend mode in platform data

2018-03-14 Thread Nick Dyer
Hi Dmitry- Thanks for sending these patches! On Mon, Mar 12, 2018 at 12:08:54PM -0700, Dmitry Torokhov wrote: > The way we are supposed to put controller to sleep and wake it up does not > depend on the platform, but rather on controller itself. Controllers using > T9 require manipulating T9

Re: [PATCH 01/14] Input: atmel_mxt_ts - do not pass suspend mode in platform data

2018-03-14 Thread Nick Dyer
Hi Dmitry- Thanks for sending these patches! On Mon, Mar 12, 2018 at 12:08:54PM -0700, Dmitry Torokhov wrote: > The way we are supposed to put controller to sleep and wake it up does not > depend on the platform, but rather on controller itself. Controllers using > T9 require manipulating T9

Re: [PATCH 03/14] Input: atmel_mxt_ts - switch ChromeOS ACPI devices to generic props

2018-03-14 Thread Nick Dyer
move support for platform data later on, leaving only generic device > properties in place. > > Signed-off-by: Dmitry Torokhov <dmitry.torok...@gmail.com> Acked-by: Nick Dyer <n...@shmanahar.org> > --- > drivers/input/touchscreen/atmel_mxt_ts.c | 63 +++---

Re: [PATCH 03/14] Input: atmel_mxt_ts - switch ChromeOS ACPI devices to generic props

2018-03-14 Thread Nick Dyer
move support for platform data later on, leaving only generic device > properties in place. > > Signed-off-by: Dmitry Torokhov Acked-by: Nick Dyer > --- > drivers/input/touchscreen/atmel_mxt_ts.c | 63 +++- > 1 file changed, 40 insertions(+), 23 deletion

Re: [PATCH 14/14] Input: atmel_mxt_ts - remove platform data support

2018-03-14 Thread Nick Dyer
On Mon, Mar 12, 2018 at 12:09:07PM -0700, Dmitry Torokhov wrote: > Date: Mon, 12 Mar 2018 12:09:07 -0700 > From: Dmitry Torokhov <dmitry.torok...@gmail.com> > To: linux-in...@vger.kernel.org, Benson Leung <ble...@chromium.org> > Cc: Nick Dyer <n...@shmanahar.org>,

Re: [PATCH 14/14] Input: atmel_mxt_ts - remove platform data support

2018-03-14 Thread Nick Dyer
On Mon, Mar 12, 2018 at 12:09:07PM -0700, Dmitry Torokhov wrote: > Date: Mon, 12 Mar 2018 12:09:07 -0700 > From: Dmitry Torokhov > To: linux-in...@vger.kernel.org, Benson Leung > Cc: Nick Dyer , Olof Johansson , > linux-kernel@vger.kernel.org > Subject: [PATCH 14/14] I

Re: [PATCH 02/14] Input: atmel_mxt_ts - switch from OF to generic device properties

2018-03-14 Thread Nick Dyer
gt; the road. > > Signed-off-by: Dmitry Torokhov <dmitry.torok...@gmail.com> Acked-by: Nick Dyer <n...@shmanahar.org> > --- > drivers/input/touchscreen/atmel_mxt_ts.c | 59 > 1 file changed, 30 insertions(+), 29 deletions(-) > > diff --g

Re: [PATCH 02/14] Input: atmel_mxt_ts - switch from OF to generic device properties

2018-03-14 Thread Nick Dyer
gt; the road. > > Signed-off-by: Dmitry Torokhov Acked-by: Nick Dyer > --- > drivers/input/touchscreen/atmel_mxt_ts.c | 59 > 1 file changed, 30 insertions(+), 29 deletions(-) > > diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c > b/driv

Re: [PATCH] input/rmi4: Delete an error message for a failed memory allocation in two functions

2018-01-24 Thread Nick Dyer
On Wed, Jan 24, 2018 at 07:28:44PM +0100, SF Markus Elfring wrote: > Omit an extra message for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring <elfr...@users.sourceforge.net> Sig

Re: [PATCH] input/rmi4: Delete an error message for a failed memory allocation in two functions

2018-01-24 Thread Nick Dyer
On Wed, Jan 24, 2018 at 07:28:44PM +0100, SF Markus Elfring wrote: > Omit an extra message for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Signed-off-by: Nick Dyer > --- >

Re: [PATCH] Input: atmel_mxt_ts: Delete error messages for a failed memory allocation in two functions

2018-01-24 Thread Nick Dyer
Thanks! Signed-off-by: Nick Dyer <n...@shmanahar.org> > --- > drivers/input/touchscreen/atmel_mxt_ts.c | 9 ++--- > 1 file changed, 2 insertions(+), 7 deletions(-) > > diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c > b/drivers/input/touchscreen/atmel_mxt_t

Re: [PATCH] Input: atmel_mxt_ts: Delete error messages for a failed memory allocation in two functions

2018-01-24 Thread Nick Dyer
On Sun, Jan 21, 2018 at 10:33:50PM +0100, SF Markus Elfring wrote: > Omit extra messages for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Thanks! Signed-off-by: Nick Dyer &

Re: [PATCH] input: atmel_mxt_ts: detect touchpad from devicetree

2017-10-08 Thread Nick Dyer
going to cause issues on this new device? I think you need to add this to Documentation/devicetree/bindings/input/atmel,maxtouch.txt Reviewed-by: Nick Dyer <n...@shmanahar.org> > Signed-off-by: Emil Renner Berthing <ker...@esmil.dk> > --- > drivers/input/touchscreen/atmel_mxt_

Re: [PATCH] input: atmel_mxt_ts: detect touchpad from devicetree

2017-10-08 Thread Nick Dyer
going to cause issues on this new device? I think you need to add this to Documentation/devicetree/bindings/input/atmel,maxtouch.txt Reviewed-by: Nick Dyer > Signed-off-by: Emil Renner Berthing > --- > drivers/input/touchscreen/atmel_mxt_ts.c | 8 ++-- > include/linux/platform_da

Re: [PATCH] Input: atmel_mxt_ts - Remove unnecessary byte_offset check

2017-10-08 Thread Nick Dyer
On Sun, Oct 08, 2017 at 07:44:18PM +0100, Christos Gkekas wrote: > Variable byte_offset is unsigned so checking whether it is greater or > equal to zero is redundant. > > Signed-off-by: Christos Gkekas <chris.ge...@gmail.com> Yep - looks sensible to me. Signed-of

Re: [PATCH] Input: atmel_mxt_ts - Remove unnecessary byte_offset check

2017-10-08 Thread Nick Dyer
On Sun, Oct 08, 2017 at 07:44:18PM +0100, Christos Gkekas wrote: > Variable byte_offset is unsigned so checking whether it is greater or > equal to zero is redundant. > > Signed-off-by: Christos Gkekas Yep - looks sensible to me. Signed-off-by: Nick Dyer > --- > drivers

Re: [PATCH] atmel_mxt_ts: Add support for reset line

2017-06-29 Thread Nick Dyer
On Tue, Jun 27, 2017 at 06:24:38PM +0200, Sebastian Reichel wrote: > At least some of the Atmel Maxtouch touchscreen controllers have a reset > pin. If this is not driven correctly the device will be held in reset > and will not respond. > > Add support for driving the reset line via GPIO as is

Re: [PATCH] atmel_mxt_ts: Add support for reset line

2017-06-29 Thread Nick Dyer
On Tue, Jun 27, 2017 at 06:24:38PM +0200, Sebastian Reichel wrote: > At least some of the Atmel Maxtouch touchscreen controllers have a reset > pin. If this is not driven correctly the device will be held in reset > and will not respond. > > Add support for driving the reset line via GPIO as is

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

2017-06-22 Thread Nick Dyer
ues with the I2C controller or touchpad were addressed in: > commit 5b65c2a02966 ("HID: rmi: check sanity of the incoming report") > > Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=195949 > Signed-off-by: Andrew Duggan <adug...@synaptics.com> Looks fine to me. Re

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

2017-06-22 Thread Nick Dyer
ues with the I2C controller or touchpad were addressed in: > commit 5b65c2a02966 ("HID: rmi: check sanity of the incoming report") > > Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=195949 > Signed-off-by: Andrew Duggan Looks fine to me. Reviewed-by: Nick Dyer > --- &g

Re: [PATCH] Input: synaptics-rmi4 - use %ph to form F34 configuration ID

2017-05-31 Thread Nick Dyer
; > Looks good to me: > > Reviewed-by: Benjamin Tissoires <benjamin.tissoi...@redhat.com> > > Hm, I just realized taht we'd go from upper to lowercase hex digits. I > think it should be OK, but I'd like to hear interested parties (Nick). > > Or we'd need to introduce %pH

Re: [PATCH] Input: synaptics-rmi4 - use %ph to form F34 configuration ID

2017-05-31 Thread Nick Dyer
Reviewed-by: Benjamin Tissoires > > Hm, I just realized taht we'd go from upper to lowercase hex digits. I > think it should be OK, but I'd like to hear interested parties (Nick). > > Or we'd need to introduce %pH I guess. Hi Dmitry- I can't see any issue with this: all the firmwares

Re: Synaptics RMI4 touchpad regression in 4.11-rc1

2017-03-14 Thread Nick Dyer
On Mon, Mar 13, 2017 at 10:10:22PM -0700, Cameron Gutman wrote: > > Compared to hid-multitouch, the RMI stack seems to have > > completely broken palm rejection and introduced some random > > jumpiness during fine pointing motions. I don't know if these > > issues are caused by the

Re: Synaptics RMI4 touchpad regression in 4.11-rc1

2017-03-14 Thread Nick Dyer
On Mon, Mar 13, 2017 at 10:10:22PM -0700, Cameron Gutman wrote: > > Compared to hid-multitouch, the RMI stack seems to have > > completely broken palm rejection and introduced some random > > jumpiness during fine pointing motions. I don't know if these > > issues are caused by the

Re: [PATCH] Input: synaptics-rmi4 - create firmware update sysfs attribute in F34

2017-02-13 Thread Nick Dyer
On Sun, Feb 12, 2017 at 04:02:51PM -0800, Dmitry Torokhov wrote: > On Sun, Feb 12, 2017 at 10:50:56PM +0000, Nick Dyer wrote: > > On Thu, Feb 09, 2017 at 01:25:08PM -0800, Dmitry Torokhov wrote: > > > There is no need to create sysfs attributes in the main driver core, > >

Re: [PATCH] Input: synaptics-rmi4 - create firmware update sysfs attribute in F34

2017-02-13 Thread Nick Dyer
On Sun, Feb 12, 2017 at 04:02:51PM -0800, Dmitry Torokhov wrote: > On Sun, Feb 12, 2017 at 10:50:56PM +0000, Nick Dyer wrote: > > On Thu, Feb 09, 2017 at 01:25:08PM -0800, Dmitry Torokhov wrote: > > > There is no need to create sysfs attributes in the main driver core, > >

Re: [PATCH] Input: synaptics-rmi4 - create firmware update sysfs attribute in F34

2017-02-12 Thread Nick Dyer
On Thu, Feb 09, 2017 at 01:25:08PM -0800, Dmitry Torokhov wrote: > There is no need to create sysfs attributes in the main driver core, > let F34 implementation do that. Hi Dmitry- I haven't tested this yet, but I did try creating/removing the sysfs entries in the f34 function probe/remove as

Re: [PATCH] Input: synaptics-rmi4 - create firmware update sysfs attribute in F34

2017-02-12 Thread Nick Dyer
On Thu, Feb 09, 2017 at 01:25:08PM -0800, Dmitry Torokhov wrote: > There is no need to create sysfs attributes in the main driver core, > let F34 implementation do that. Hi Dmitry- I haven't tested this yet, but I did try creating/removing the sysfs entries in the f34 function probe/remove as

Re: [PATCH v9] Input: synaptics-rmi4 - add support for F34 V7 bootloader

2016-12-11 Thread Nick Dyer
On Sun, Dec 11, 2016 at 12:03:49AM -0800, Dmitry Torokhov wrote: > On Sun, Dec 11, 2016 at 12:18:26AM +0000, Nick Dyer wrote: > > +static void rmi_f34v7_parse_img_header_10_bl_container(struct f34_data > > *f34, > > +

Re: [PATCH v9] Input: synaptics-rmi4 - add support for F34 V7 bootloader

2016-12-11 Thread Nick Dyer
On Sun, Dec 11, 2016 at 12:03:49AM -0800, Dmitry Torokhov wrote: > On Sun, Dec 11, 2016 at 12:18:26AM +0000, Nick Dyer wrote: > > +static void rmi_f34v7_parse_img_header_10_bl_container(struct f34_data > > *f34, > > +

[PATCH v9] Input: synaptics-rmi4 - add support for F34 V7 bootloader

2016-12-10 Thread Nick Dyer
Port firmware update code from Samsung Galaxy S7 driver into mainline framework. This patch has been tested on Synaptics S7813. Signed-off-by: Nick Dyer <n...@shmanahar.org> Tested-by: Chris Healy <cphe...@gmail.com> --- Changes in v9: - Fix strangeness introduced in conversi

[PATCH v9] Input: synaptics-rmi4 - add support for F34 V7 bootloader

2016-12-10 Thread Nick Dyer
Port firmware update code from Samsung Galaxy S7 driver into mainline framework. This patch has been tested on Synaptics S7813. Signed-off-by: Nick Dyer Tested-by: Chris Healy --- Changes in v9: - Fix strangeness introduced in conversion to proper le32_to_cpu() APIs - Various other minor

Re: [PATCH v8] Input: synaptics-rmi4 - add support for F34 V7 bootloader

2016-12-10 Thread Nick Dyer
On Wed, Dec 07, 2016 at 06:14:18PM -0800, Dmitry Torokhov wrote: > On Mon, Dec 05, 2016 at 01:02:49AM +0000, Nick Dyer wrote: > > +static void rmi_f34v7_parse_img_header_10_bl_container(struct f34_data > > *f34, > > +

Re: [PATCH v8] Input: synaptics-rmi4 - add support for F34 V7 bootloader

2016-12-10 Thread Nick Dyer
On Wed, Dec 07, 2016 at 06:14:18PM -0800, Dmitry Torokhov wrote: > On Mon, Dec 05, 2016 at 01:02:49AM +0000, Nick Dyer wrote: > > +static void rmi_f34v7_parse_img_header_10_bl_container(struct f34_data > > *f34, > > +

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

2016-12-04 Thread Nick Dyer
The debug would only ever output zero for the clip information. Signed-off-by: Nick Dyer <n...@shmanahar.org> --- drivers/input/rmi4/rmi_f12.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/input/rmi4/rmi_f12.c b/drivers/input/rmi4/rmi_f12.c index 8

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

2016-12-04 Thread Nick Dyer
The debug would only ever output zero for the clip information. Signed-off-by: Nick Dyer --- drivers/input/rmi4/rmi_f12.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/input/rmi4/rmi_f12.c b/drivers/input/rmi4/rmi_f12.c index 8c5360c..e35c64b 100644

[PATCH v8] Input: synaptics-rmi4 - add support for F34 V7 bootloader

2016-12-04 Thread Nick Dyer
Port firmware update code from Samsung Galaxy S7 driver into mainline framework. This patch has been tested on Synaptics S7813. Signed-off-by: Nick Dyer <n...@shmanahar.org> Tested-by: Chris Healy <cphe...@gmail.com> --- Hi Dmitry- Thanks for the useful review, here is an upd

[PATCH v8] Input: synaptics-rmi4 - add support for F34 V7 bootloader

2016-12-04 Thread Nick Dyer
Port firmware update code from Samsung Galaxy S7 driver into mainline framework. This patch has been tested on Synaptics S7813. Signed-off-by: Nick Dyer Tested-by: Chris Healy --- Hi Dmitry- Thanks for the useful review, here is an updated version. This patch applies on top of dtor

[PATCH v7] Input: synaptics-rmi4 - add support for F34 V7 bootloader

2016-11-29 Thread Nick Dyer
Port firmware update code from Samsung Galaxy S7 driver into mainline framework. This patch has been tested on Synaptics S7813. Signed-off-by: Nick Dyer <n...@shmanahar.org> Tested-by: Chris Healy <cphe...@gmail.com> --- Hi Dmitry- Here's an updated version of the F34 V7 support.

[PATCH v7] Input: synaptics-rmi4 - add support for F34 V7 bootloader

2016-11-29 Thread Nick Dyer
Port firmware update code from Samsung Galaxy S7 driver into mainline framework. This patch has been tested on Synaptics S7813. Signed-off-by: Nick Dyer Tested-by: Chris Healy --- Hi Dmitry- Here's an updated version of the F34 V7 support. This patch applies on top of dtor/synaptics-rmi4

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

2016-11-23 Thread Nick Dyer
On Wed, Nov 23, 2016 at 12:20:41PM +0100, Benjamin Tissoires wrote: > On Nov 20 2016 or thereabouts, Nick Dyer wrote: > > Add support for updating firmware, triggered by a sysfs attribute. > > > > This patch has been tested on Synaptics S7300. > > > > Signed-off-

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

2016-11-23 Thread Nick Dyer
On Wed, Nov 23, 2016 at 12:20:41PM +0100, Benjamin Tissoires wrote: > On Nov 20 2016 or thereabouts, Nick Dyer wrote: > > Add support for updating firmware, triggered by a sysfs attribute. > > > > This patch has been tested on Synaptics S7300. > > > > Sig

Re: [PATCH v6 2/2] Input: synaptics-rmi4 - add support for F34 V7 bootloader

2016-11-23 Thread Nick Dyer
On Tue, Nov 22, 2016 at 05:51:11PM -0800, Dmitry Torokhov wrote: > On Sun, Nov 20, 2016 at 07:04:02PM +0000, Nick Dyer wrote: > > + /* query 7 */ > > + unsigned char f34_query7_b0:1; > > + unsigned

Re: [PATCH v6 2/2] Input: synaptics-rmi4 - add support for F34 V7 bootloader

2016-11-23 Thread Nick Dyer
On Tue, Nov 22, 2016 at 05:51:11PM -0800, Dmitry Torokhov wrote: > On Sun, Nov 20, 2016 at 07:04:02PM +0000, Nick Dyer wrote: > > + /* query 7 */ > > + unsigned char f34_query7_b0:1; > > + unsigned

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

2016-11-20 Thread Nick Dyer
Add support for updating firmware, triggered by a sysfs attribute. This patch has been tested on Synaptics S7300. Signed-off-by: Nick Dyer <n...@shmanahar.org> Tested-by: Chris Healy <cphe...@gmail.com> --- drivers/input/rmi4/Kconfig | 11 + drivers/input/rmi4/Makefi

[PATCH v6 2/2] Input: synaptics-rmi4 - add support for F34 V7 bootloader

2016-11-20 Thread Nick Dyer
Port firmware update code from Samsung Galaxy S7 driver into mainline framework. This patch has been tested on Synaptics S7813. Signed-off-by: Nick Dyer <n...@shmanahar.org> Tested-by: Chris Healy <cphe...@gmail.com> --- drivers/input/rmi4/Makefile |2 +- drivers/input/rmi4/

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

2016-11-20 Thread Nick Dyer
Add support for updating firmware, triggered by a sysfs attribute. This patch has been tested on Synaptics S7300. Signed-off-by: Nick Dyer Tested-by: Chris Healy --- drivers/input/rmi4/Kconfig | 11 + drivers/input/rmi4/Makefile | 1 + drivers/input/rmi4/rmi_bus.c| 3

[PATCH v6 2/2] Input: synaptics-rmi4 - add support for F34 V7 bootloader

2016-11-20 Thread Nick Dyer
Port firmware update code from Samsung Galaxy S7 driver into mainline framework. This patch has been tested on Synaptics S7813. Signed-off-by: Nick Dyer Tested-by: Chris Healy --- drivers/input/rmi4/Makefile |2 +- drivers/input/rmi4/rmi_driver.c | 56 +- drivers/input/rmi4/rmi_f34

[PATCH v6 0/2] Input: synaptics-rmi4 - F34 device reflash support

2016-11-20 Thread Nick Dyer
Hi Dmitry- Please find an updated set of patches to add F34 firmware update to the RMI4 driver. Changes in v6: - Properly free irq_memory in rmi_free_function_list() - Split out the sysfs changes for now - Various coding style improvements to the V7 patch (now checkpatch clean) Changes in v5: -

[PATCH v6 0/2] Input: synaptics-rmi4 - F34 device reflash support

2016-11-20 Thread Nick Dyer
Hi Dmitry- Please find an updated set of patches to add F34 firmware update to the RMI4 driver. Changes in v6: - Properly free irq_memory in rmi_free_function_list() - Split out the sysfs changes for now - Various coding style improvements to the V7 patch (now checkpatch clean) Changes in v5: -

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

2016-11-15 Thread Nick Dyer
F54 to avoid > corrupted output if not all electrodes are enabled. > > Fixes: 3a762dbd5347 ("[media] Input: synaptics-rmi4 - add support for F54 > ...") > Cc: Nick Dyer <n...@shmanahar.org> > Cc: Andrew Duggan <adug...@synaptics.com> > Cc: Chris Healy <

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

2016-11-15 Thread Nick Dyer
: synaptics-rmi4 - add support for F54 > ...") > Signed-off-by: Guenter Roeck <li...@roeck-us.net> Hi Guenter- I've tested this patch on s7813 and it works correctly. Tested-by: Nick Dyer <n...@shmanahar.org> > --- > v2: Drop unnecessary include files > Only read

  1   2   3   4   5   6   7   8   9   10   >