Re: [Regression]: Commit 74d905d2 breaks the touchpad and touchscreen of Google Chromebook "samus"

2020-11-23 Thread Wang, Jiada
ted. @dmitry I would suggest to revert the commit until we find out the root cause Thanks, Jiada On 2020/11/24 15:15, Andre Muller wrote: On 24/11/2020 04.02, Wang, Jiada wrote: Hello Andre Thanks for the log, can you add more debug information like following diff, and get full log? Hi Ji

Re: [Regression]: Commit 74d905d2 breaks the touchpad and touchscreen of Google Chromebook "samus"

2020-11-23 Thread Wang, Jiada
lient->dev, "RETRIGEN feature available\n"); return 0; + } } dev_warn(&client->dev, "Enabling RETRIGEN workaround\n"); Thanks, Jiada On 2020/11/05 23:23, Andre Muller wrote: On 05/11/2020 14.25, Wang, Jiada wrote: Hi Andre Thanks for your report, c

Re: [Regression]: Commit 74d905d2 breaks the touchpad and touchscreen of Google Chromebook "samus"

2020-11-05 Thread Wang, Jiada
Hi Andre Thanks for your report, could you also please post the log when with this commit reverted? Thanks, Jiada On 2020/11/04 17:13, Andre wrote: Hi, commit 74d905d2: Input: atmel_mxt_ts - only read messages in mxt_acquire_irq() when necessary breaks the touchpad and touchscreen of the

Re: [PATCH v3 0/3] implement I2C retries for mXT1368

2020-10-20 Thread Wang, Jiada
Hello Dmitry and all Kind reminder on this patch-set Thanks, Jiada On 2020/10/01 0:12, Jiada Wang wrote: According to datasheet, mXT1386 chip has a WAKE line, it is used to wake the chip up from deep sleep mode before communicating with it via the I2C-compatible interface. if the WAKE

[PATCH v3 3/3] ARM: tegra: add mXT1386 compatible

2020-09-30 Thread Jiada Wang
Add mXT1386 compatible for "touchscreen@4c". Signed-off-by: Jiada Wang --- arch/arm/boot/dts/tegra20-acer-a500-picasso.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts b/arch/arm/boot/dts/tegra20-acer-a500-picasso

[PATCH v3 0/3] implement I2C retries for mXT1368

2020-09-30 Thread Jiada Wang
nsfer once after a 25 ms sleep. Jiada Wang (3): dt-bindings: input: atmel: add compatible for mXT1386 Input: atmel_mxt_ts - implement I2C retries for mXT1368 ARM: tegra: add mXT1386 compatible --- v3: change compatible string to lowercase v2: add bool retry_i2c_transfers to struct mx

[PATCH v3 2/3] Input: atmel_mxt_ts - implement I2C retries for mXT1368

2020-09-30 Thread Jiada Wang
ce after a 25 ms sleep. Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 62 +++- 1 file changed, 50 insertions(+), 12 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 98f17fa3a892..10

[PATCH v3 1/3] dt-bindings: input: atmel: add compatible for mXT1386

2020-09-30 Thread Jiada Wang
Document the mXT1386 compatible string. Signed-off-by: Jiada Wang --- Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt b/Documentation/devicetree/bindings/input/atmel

Re: [PATCH v2 1/3] dt-bindings: input: atmel: add compatible for mXT1386

2020-09-30 Thread Wang, Jiada
Hi Thierry Thanks for your comment On 2020/09/28 15:59, Thierry Reding wrote: On Fri, Sep 25, 2020 at 10:52:55PM +0900, Jiada Wang wrote: Document the mXT1386 compatible string. Signed-off-by: Jiada Wang --- Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 1 + 1 file changed

[PATCH v2 2/3] Input: atmel_mxt_ts - implement I2C retries for mXT1368

2020-09-25 Thread Jiada Wang
ce after a 25 ms sleep. Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 62 +++- 1 file changed, 50 insertions(+), 12 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 98f17fa3a892..c0

[PATCH v2 0/3] implement I2C retries for mXT1368

2020-09-25 Thread Jiada Wang
nsfer once after a 25 ms sleep. Jiada Wang (3): dt-bindings: input: atmel: add compatible for mXT1386 Input: atmel_mxt_ts - implement I2C retries for mXT1368 ARM: tegra: add mXT1386 compatible --- v2: add bool retry_i2c_transfers to struct mxt_data, to indicate whether retry is neede

[PATCH v2 1/3] dt-bindings: input: atmel: add compatible for mXT1386

2020-09-25 Thread Jiada Wang
Document the mXT1386 compatible string. Signed-off-by: Jiada Wang --- Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt b/Documentation/devicetree/bindings/input/atmel

[PATCH v2 3/3] ARM: tegra: add mXT1386 compatible

2020-09-25 Thread Jiada Wang
Add mXT1386 compatible for "touchscreen@4c". Signed-off-by: Jiada Wang --- arch/arm/boot/dts/tegra20-acer-a500-picasso.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts b/arch/arm/boot/dts/tegra20-acer-a500-picasso

[PATCH v1 2/3] Input: atmel_mxt_ts - implement I2C retries for mXT1368

2020-09-21 Thread Jiada Wang
ce after a 25 ms sleep. Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 44 +--- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 98f17fa3a892..96

[PATCH v1 3/3] ARM: tegra: add mXT1386 compatible

2020-09-21 Thread Jiada Wang
Add mXT1386 compatible for "touchscreen@4c". Signed-off-by: Jiada Wang --- arch/arm/boot/dts/tegra20-acer-a500-picasso.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts b/arch/arm/boot/dts/tegra20-acer-a500-picasso

[PATCH v1 1/3] dt-bindings: input: atmel: add compatible for mXT1386

2020-09-21 Thread Jiada Wang
Document the mXT1386 compatible string. Signed-off-by: Jiada Wang --- Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt b/Documentation/devicetree/bindings/input/atmel

Re: [PATCH v2 2/2] Input: atmel_mxt_ts - wake mXT1386 from deep-sleep mode

2020-09-20 Thread Wang, Jiada
Hi Dmitry On 2020/09/20 23:21, Dmitry Osipenko wrote: 20.09.2020 16:13, Wang, Jiada пишет: Hi Dmitry On 2020/09/20 15:02, Dmitry Torokhov wrote: On Sat, Sep 19, 2020 at 10:28 PM Wang, Jiada wrote: Hi Dmitry On 2020/09/20 4:49, Dmitry Osipenko wrote: 18.09.2020 18:55, Wang, Jiada пишет

Re: [PATCH v2 2/2] Input: atmel_mxt_ts - wake mXT1386 from deep-sleep mode

2020-09-20 Thread Wang, Jiada
Hi Dmitry On 2020/09/20 15:02, Dmitry Torokhov wrote: On Sat, Sep 19, 2020 at 10:28 PM Wang, Jiada wrote: Hi Dmitry On 2020/09/20 4:49, Dmitry Osipenko wrote: 18.09.2020 18:55, Wang, Jiada пишет: ... +static void mxt_wake(struct mxt_data *data) +{ +struct i2c_client *client = data

Re: [PATCH v2 2/2] Input: atmel_mxt_ts - wake mXT1386 from deep-sleep mode

2020-09-19 Thread Wang, Jiada
Hi Dmitry On 2020/09/20 4:49, Dmitry Osipenko wrote: 18.09.2020 18:55, Wang, Jiada пишет: ...   +static void mxt_wake(struct mxt_data *data) +{ +    struct i2c_client *client = data->client; +    struct device *dev = &data->client->dev; +    struct device_node *np = dev->of_

Re: [PATCH v2 2/2] Input: atmel_mxt_ts - wake mXT1386 from deep-sleep mode

2020-09-18 Thread Wang, Jiada
Hi Dmitry Thanks for your quick comments On 2020/09/18 22:32, Dmitry Osipenko wrote: 18.09.2020 15:56, Jiada Wang пишет: According to datasheet, mXT1386 chip has a WAKE line, it is used to wake the chip up from deep sleep mode before communicating with it via the I2C-compatible interface. if

[PATCH v1 1/2] dt-bindings: input: atmel: add compatible for mXT1386

2020-09-18 Thread Jiada Wang
Document the mXT1386 compatible string. Signed-off-by: Jiada Wang --- Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt b/Documentation/devicetree/bindings/input/atmel

[PATCH v2 2/2] Input: atmel_mxt_ts - wake mXT1386 from deep-sleep mode

2020-09-18 Thread Jiada Wang
mxt_initialize(), mxt_load_fw() and mxt_start() to ensure before any actual i2c transfer, mxt_wake() can be executed. Added new compatible string "atmel,mXT1386". Signed-off-by: Jiada Wang Suggested-by: Dmitry Osipenko --- drivers/input/touchscreen/atmel_mxt_ts.c | 27 ++

Re: [PATCH v4 1/1] Input: atmel_mxt_ts - implement I2C retries

2020-09-15 Thread Wang, Jiada
Hi Dmitry On 2020/09/15 6:33, Dmitry Osipenko wrote: 14.09.2020 22:36, Dmitry Torokhov пишет: On Mon, Sep 14, 2020 at 12:33:40PM -0700, Dmitry Torokhov wrote: On Mon, Sep 14, 2020 at 08:29:44PM +0300, Dmitry Osipenko wrote: 13.09.2020 19:56, Dmitry Torokhov пишет: Hi Jiada, On Sat, Sep 12

[PATCH v4 1/1] Input: atmel_mxt_ts - implement I2C retries

2020-09-11 Thread Jiada Wang
From: Nick Dyer Some maXTouch chips (eg mXT1386) will not respond on the first I2C request when they are in a sleep state. It must be retried after a delay for the chip to wake up. Signed-off-by: Nick Dyer [gdavis: Forward port and fix conflicts.] Signed-off-by: George G. Davis [jiada: return

Re: [PATCH v2 1/1] Input: atmel_mxt_ts - implement I2C retries

2020-09-11 Thread Wang, Jiada
Hi Andy Thanks for your comment On 2020/09/06 3:02, Andy Shevchenko wrote: On Thursday, September 3, 2020, Jiada Wang <mailto:jiada_w...@mentor.com>> wrote: From: Nick Dyer mailto:nick.d...@itdev.co.uk>> Some maXTouch chips (eg mXT1386) will not respond o

[PATCH v3 1/1] Input: atmel_mxt_ts - implement I2C retries

2020-09-08 Thread Jiada Wang
63fd7a2cd03c3a572a5db39c52f4856819e1835d) [gdavis: Forward port and fix conflicts.] Signed-off-by: George G. Davis [jiada: return exact errno when i2c_transfer & i2c_master_send fails, add "_MS" suffix MXT_WAKEUP_TIME] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel

[PATCH v2 1/1] Input: atmel_mxt_ts - implement I2C retries

2020-09-03 Thread Jiada Wang
63fd7a2cd03c3a572a5db39c52f4856819e1835d) [gdavis: Forward port and fix conflicts.] Signed-off-by: George G. Davis [jiada: return exact errno when i2c_transfer & i2c_master_send fails] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 45 1 file changed

Re: [PATCH 1/1] Input: atmel_mxt_ts - implement I2C retries

2020-09-03 Thread Wang, Jiada
Hi Dmitry On 2020/08/28 17:19, Dmitry Osipenko wrote: 21.08.2020 11:22, Jiada Wang пишет: From: Nick Dyer Some maXTouch chips (eg mXT1386) will not respond on the first I2C request when they are in a sleep state. It must be retried after a delay for the chip to wake up. Signed-off-by: Nick

[PATCH 1/1] Input: atmel_mxt_ts - implement I2C retries

2020-08-21 Thread Jiada Wang
63fd7a2cd03c3a572a5db39c52f4856819e1835d) [gdavis: Forward port and fix conflicts.] Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 45 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/drivers/input/touchscreen

[PATCH v2 1/1] Input: atmel_mxt_ts - allow specification of firmware file name

2020-08-21 Thread Jiada Wang
fault firmware "maxtouch.fw". Signed-off-by: Nick Dyer Acked-by: Benson Leung Acked-by: Yufeng Shen (cherry picked from ndyer/linux/for-upstream commit 76ebb7cee971cb42dfb0a3a9224403b8b09abcf1) [gdavis: Forward port and fix conflicts.] Signed-off-by: George G. Davis [jiada: change t

Re: [PATCH 1/1] Input: atmel_mxt_ts - allow specification of firmware file name

2020-08-12 Thread Wang, Jiada
Hi Dmitry On 2020/08/10 5:11, Dmitry Osipenko wrote: 31.07.2020 10:57, Jiada Wang пишет: From: Nick Dyer On platforms which have multiple device instances using this driver, the firmware may be different on each device. This patch makes the user give the name of the firmware file when

[PATCH 1/1] Input: atmel_mxt_ts - allow specification of firmware file name

2020-07-31 Thread Jiada Wang
: Nick Dyer Acked-by: Benson Leung Acked-by: Yufeng Shen (cherry picked from ndyer/linux/for-upstream commit 76ebb7cee971cb42dfb0a3a9224403b8b09abcf1) [gdavis: Forward port and fix conflicts.] Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH 2/2] Input: atmel_mxt_ts - output status from T42 Touch Suppression

2020-07-29 Thread Jiada Wang
From: Nick Dyer This patch outputs status from T42 touch suppression Signed-off-by: Nick Dyer Acked-by: Benson Leung Acked-by: Yufeng Shen (cherry picked from ndyer/linux/for-upstream commit ab95b5a30d2c098daaa9f88d9fcfae7eb516) Signed-off-by: George G. Davis [jiada: Replace dev_info

[PATCH 1/2] Input: atmel_mxt_ts - output status from T48 Noise Suppression

2020-07-29 Thread Jiada Wang
From: Nick Dyer This patch outputs status from T48 Noise Suppression Signed-off-by: Nick Dyer Acked-by: Benson Leung Acked-by: Yufeng Shen (cherry picked from ndyer/linux/for-upstream commit 2895a6ff150a49f27a02938f8d262be238b296d8) Signed-off-by: George G. Davis [jiada: Replace bits with

[PATCH 1/1] Input: atmel_mxt_ts: split large i2c transfers into blocks

2020-07-29 Thread Jiada Wang
From: Jiada wang Some I2C controllers constrain maximum transferred data in an I2C transaction by set max_[read|write]_len of i2c_adapter_quirk. Large i2c transfer transaction beyond this limitation may fail to complete, cause I2C controller driver aborts the transaction and returns failure

[PATCH v2 1/1] Input: atmel_mxt_ts - only read messages in mxt_acquire_irq() when necessary

2020-07-27 Thread Jiada Wang
quot;).] Signed-off-by: George G. Davis [jiada: reset use_retrigen_workaround at beginning of mxt_check_retrigen() call mxt_check_retrigen() after mxt_acquire_irq() in mxt_initialize() replace white-spaces with tab for MXT_COMMS_RETRIGEN Changed to check if IRQ is level type

[PATCH 1/1] Input: atmel_mxt_ts - only read messages in mxt_acquire_irq() when necessary

2020-07-20 Thread Jiada Wang
quot;).] Signed-off-by: George G. Davis [jiada: reset use_retrigen_workaround at beginning of mxt_check_retrigen() call mxt_check_retrigen() after mxt_acquire_irq() in mxt_initialize() replace white-spaces with tab for MXT_COMMS_RETRIGEN] Signed-off-by: Jiada Wang --- drivers/in

Re: [PATCH v11 00/56] atmel_mxt_ts misc

2020-07-17 Thread Wang, Jiada
Hello All I am thinking it doesn't make sense to keep the series with such a big chunk of patches, I will divide the series into several small series Thanks, Jiada On 2020/07/08 22:05, Wang, Jiada wrote: Hello Dmitry I am working on refining this series, regarding your comment about

Re: [PATCH v11 00/56] atmel_mxt_ts misc

2020-07-08 Thread Wang, Jiada
help to confirm if this is the case? Thanks, Jiada On 2020/06/25 22:50, Wang, Jiada wrote: Hello Dmitry sorry for the delay, On 2020/05/27 15:43, Dmitry Torokhov wrote: Hi Jiada, On Thu, May 07, 2020 at 10:56:00PM -0700, Jiada Wang wrote: This patch-set forward ports Nick Dyer's wo

Re: [PATCH v11 05/56] Input: atmel_mxt_ts - output status from T48 Noise Supression

2020-06-30 Thread Wang, Jiada
Hello Dmitry On 2020/05/12 7:23, Dmitry Torokhov wrote: On Thu, May 07, 2020 at 10:56:05PM -0700, Jiada Wang wrote: From: Nick Dyer This patch outputs status from T48 Noise Supression Signed-off-by: Nick Dyer Acked-by: Benson Leung Acked-by: Yufeng Shen (cherry picked from ndyer/linux

Re: [PATCH v11 07/56] Input: atmel_mxt_ts - implement T9 vector/orientation support

2020-06-30 Thread Wang, Jiada
Hello Dmitry On 2020/05/12 7:53, Dmitry Torokhov wrote: On Thu, May 07, 2020 at 10:56:07PM -0700, Jiada Wang wrote: From: Nick Dyer The atmel touch messages contain orientation information as a byte in a packed format which can be passed straight on to Android if the input device

Re: [PATCH v11 04/56] Input: atmel_mxt_ts - split large i2c transfers into blocks

2020-06-30 Thread Wang, Jiada
Hello Dmitry On 2020/05/12 7:19, Dmitry Torokhov wrote: Hi Jiada, Nick, On Thu, May 07, 2020 at 10:56:04PM -0700, Jiada Wang wrote: From: Nick Dyer On some firmware variants, the size of the info block exceeds what can be read in a single transfer. Is this limitation of the mXT controller

Re: [PATCH v11 00/56] atmel_mxt_ts misc

2020-06-25 Thread Wang, Jiada
Hello Dmitry sorry for the delay, On 2020/05/27 15:43, Dmitry Torokhov wrote: Hi Jiada, On Thu, May 07, 2020 at 10:56:00PM -0700, Jiada Wang wrote: This patch-set forward ports Nick Dyer's work in ndyer/linux github repository as long as some other features and fixes Sorry for ignorin

Re: [PATCH v11 33/56] Input: atmel_mxt_ts - delay enabling IRQ when not using regulators

2020-05-25 Thread Wang, Jiada
Hello Dmitry On 2020/05/17 22:26, Dmitry Osipenko wrote: 17.05.2020 16:08, Dmitry Osipenko пишет: 17.05.2020 06:32, Wang, Jiada пишет: Hello Dmitry On 2020/05/14 13:53, Dmitry Osipenko wrote: 13.05.2020 08:07, Wang, Jiada пишет: Hello Dmitry On 2020/05/12 8:13, Dmitry Osipenko wrote

Re: [PATCH v11 33/56] Input: atmel_mxt_ts - delay enabling IRQ when not using regulators

2020-05-16 Thread Wang, Jiada
Hello Dmitry On 2020/05/14 13:53, Dmitry Osipenko wrote: 13.05.2020 08:07, Wang, Jiada пишет: Hello Dmitry On 2020/05/12 8:13, Dmitry Osipenko wrote: 11.05.2020 05:05, Wang, Jiada пишет: Hello Dmitry Thanks for your comment and test, can you let me know which platform (board) you are

Re: [PATCH v11 33/56] Input: atmel_mxt_ts - delay enabling IRQ when not using regulators

2020-05-12 Thread Wang, Jiada
Hello Dmitry On 2020/05/12 8:13, Dmitry Osipenko wrote: 11.05.2020 05:05, Wang, Jiada пишет: Hello Dmitry Thanks for your comment and test, can you let me know which platform (board) you are using for test, and DTS changes if you have added any. That's this device-tree [1] withou

Re: [PATCH v11 33/56] Input: atmel_mxt_ts - delay enabling IRQ when not using regulators

2020-05-10 Thread Wang, Jiada
Hello Dmitry Thanks for your comment and test, can you let me know which platform (board) you are using for test, and DTS changes if you have added any. Thanks, Jiada On 2020/05/11 10:05, Dmitry Osipenko wrote: 08.05.2020 08:56, Jiada Wang пишет: The path of enabling the IRQ in the probe

[PATCH v11 55/56] input: atmel_mxt_ts: don't disable IRQ before remove of mxt_fw_attr_group

2020-05-07 Thread Jiada Wang
issue. Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index e75a7e5b0c59..b518c316757d 100644 --- a/drivers/input/touchs

[PATCH v11 03/56] Input: atmel_mxt_ts - only read messages in mxt_acquire_irq() when necessary

2020-05-07 Thread Jiada Wang
quot;).] Signed-off-by: George G. Davis [jiada: reset use_retrigen_workaround at beginning of mxt_check_retrigen() call mxt_check_retrigen() after mxt_acquire_irq() in mxt_initialize() replace white-spaces with tab for MXT_COMMS_RETRIGEN] Signed-off-by: Jiada Wang --- drivers/in

[PATCH v11 48/56] Input: Atmel: improve error handling in mxt_update_cfg()

2020-05-07 Thread Jiada Wang
From: Deepak Das mxt_update_cfg() failed to propagate the error code from mxt_init_t7_power_cfg() so return the error code. Signed-off-by: Deepak Das Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 4 +++- 1 file changed, 3 insertions

[PATCH v11 54/56] input: atmel_mxt_ts: added sysfs interface to update atmel T38 data

2020-05-07 Thread Jiada Wang
. 19 6 10 2f 30 4a 50 60 updates 6 bytes of t38 data from the index 19-24 with hex values Signed-off-by: Naveen Chakka Signed-off-by: Sanjeev Chugh Signed-off-by: George G. Davis [jiada: Rename mxt_t38_data_show to t38_data_show Rename mxt_t38_data_store to t38_data_store Replace

[PATCH v11 56/56] Input: atmel_mxt_ts - Fix compilation warning

2020-05-07 Thread Jiada Wang
fix "make W=1" compilation warnings from Atmel driver as per the compilation logs. Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/t

[PATCH v11 47/56] Input: Atmel: improve error handling in mxt_initialize()

2020-05-07 Thread Jiada Wang
mxt_send_bootloader_cmd() in mxt_initialize(). Signed-off-by: Deepak Das Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 58 +--- 1 file changed, 41 insertions(+), 17 deletions(-) diff --git a/drivers/input/touchscreen

[PATCH v11 53/56] input: touchscreen: atmel_mxt_ts: Added sysfs entry for touchscreen status

2020-05-07 Thread Jiada Wang
eck device state. default value is false. Signed-off-by: Naveen Chakka Signed-off-by: Sanjeev Chugh Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 85 +++- 1 file changed, 82 insertions(+), 3 deletions(-) diff --git

[PATCH v11 46/56] Input: Atmel: improve error handling in mxt_start()

2020-05-07 Thread Jiada Wang
ned-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 31 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 7c530ffac1ba..906da438d5e8 100644 --- a/driv

[PATCH v11 51/56] Input: Atmel: use T44 object to process T5 messages

2020-05-07 Thread Jiada Wang
ut it is not recommended to use this as the main criteria to control the data transfer." This commit modifies the logic to readout the T5 messages on the basis of T44 object. Signed-off-by: Deepak Das Signed-off-by: Sanjeev Chugh Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --

[PATCH v11 50/56] Input: Atmel: handle ReportID "0x00" while processing T5 messages

2020-05-07 Thread Jiada Wang
by Touch Controller. This commit modifies Atmel touch driver to return -EINVAL if ReportID "0x00" is received while processing T5 messages. Signed-off-by: Deepak Das Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 8 1 file

[PATCH v11 04/56] Input: atmel_mxt_ts - split large i2c transfers into blocks

2020-05-07 Thread Jiada Wang
commit 960fe000b1d3 ("Input: atmel_mxt_ts - fix the firmware update").] Signed-off-by: George G. Davis [jiada: Change mxt_read_blks() to __mxt_read_reg(), original __mxt_read_reg() to __mxt_read_chunk()] Signed-off-by: Jiada Wang --- drivers/input/t

[PATCH v11 36/56] Input: atmel_mxt_ts - implement debug output for messages

2020-05-07 Thread Jiada Wang
Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 3c3fcfdd4889dfeb1c80ae8cd94a622c6342b06a) [gdavis: Forward port and fix conflicts.] Signed-off-by: George G. Davis [jiada: Rename mxt_debug_enable_store to debug_enable_store Rename mxt_debug_enable_show to debug_e

[PATCH v11 37/56] Input: atmel_mxt_ts - implement improved debug message interface

2020-05-07 Thread Jiada Wang
emove() in error path - Input: atmel_mxt_ts - protect debug_v2_enabled by mutex Signed-off-by: Dirk Behme [gdavis: Squash fix from Vladimir Zapolskiy: - Input: atmel_mxt_ts - simplify debug_msg binary attribute handling] Signed-off-by: Vladimir Zapolskiy [jia

[PATCH v11 38/56] Input: atmel_mxt_ts - eliminate data->raw_info_block

2020-05-07 Thread Jiada Wang
Dynamically allocated in mxt_read_info_block() buffer buf is assigned both to data->info and data->raw_info_block, having both data->info and data->raw_info_block is redundant and confusing. This patch eliminates data->raw_info_block. Signed-off-by: Jiada Wang Signed-off-by:

[PATCH v11 41/56] input: atmel_mxt_ts: export GPIO reset line via sysfs

2020-05-07 Thread Jiada Wang
ifying the atmel_mxt_ts GPIO reset line at any time will inevitably cause the driver to fail. Signed-off-by: George G. Davis Signed-off-by: Rajeev Kumar Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 21 + 1 file changed, 21 insertions(+) diff --git

[PATCH v11 52/56] Input: atmel_mxt_ts: use gpiod_set_value_cansleep for reset pin

2020-05-07 Thread Jiada Wang
gt;] (i2c_device_probe) from [<803252a0>] (driver_probe_device+0xc0/0x200) Signed-off-by: Balasubramani Vivekanandan Signed-off-by: Vladimir Zapolskiy Signed-off-by: Sanjeev Chugh Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 6

[PATCH v11 49/56] Input: Atmel: Improve error handling in mxt_initialize_input_device()

2020-05-07 Thread Jiada Wang
configurations. This commit modifies mxt_initialize_input_device() to return error when it fails to get the proper touch screen configurations. Signed-off-by: Deepak Das Signed-off-by: Dean Jenkins Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen

[PATCH v11 39/56] Input: atmel_mxt_ts - Change call-points of mxt_free_* functions

2020-05-07 Thread Jiada Wang
: Kautuk Consul Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index

[PATCH v11 42/56] input: atmel_mxt_ts: Add Missing Delay for reset handling of Atmel touch panel controller in detachable displays.

2020-05-07 Thread Jiada Wang
duces that delay. Signed-off-by: keerthikumarp Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH v11 43/56] Input: atmel_mxt_ts: Add support for run self-test routine.

2020-05-07 Thread Jiada Wang
-by: George G. Davis [jiada: Rename mxt_t25_selftest_show to t25_selftest_show Rename mxt_t25_selftest_store to t25_selftest_show Rename attr t25 to t25_selftest Replace DEVICE_ATTR with DEVICE_ATTR_RW] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH v11 44/56] Input: atmel_mxt_ts: Limit the max bytes transferred in an i2c transaction

2020-05-07 Thread Jiada Wang
failure. Therefore this patch was created to split the large i2c transaction into smaller chunks which can complete within the max_read_len defined by I2C controller driver. Signed-off-by: Balasubramani Vivekanandan Signed-off-by: Jiada Wang CC: Dmitry Osipenko --- drivers/input/touchscreen

[PATCH v11 40/56] Input: atmel_mxt_ts - rely on calculated_crc rather than file config_crc

2020-05-07 Thread Jiada Wang
update configuration in controller 3) calculated CRC of file == CRC of configuration in controller, then ignore configuration file Signed-off-by: Kautuk Consul Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 65

[PATCH v11 45/56] Input: atmel_mxt_ts: return error from mxt_process_messages_until_invalid()

2020-05-07 Thread Jiada Wang
From: Dean Jenkins mxt_process_messages_until_invalid() failed to propagate the error code from mxt_read_and_process_messages() so return the error code. Signed-off-by: Dean Jenkins Signed-off-by: Deepak Das Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input

[PATCH v11 34/56] Input: atmel_mxt_ts - implement I2C retries

2020-05-07 Thread Jiada Wang
63fd7a2cd03c3a572a5db39c52f4856819e1835d) [gdavis: Forward port and fix conflicts.] Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 45 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/drivers/input/touchscreen

[PATCH v11 24/56] dt-bindings: input: atmel: support to specify input name

2020-05-07 Thread Jiada Wang
Support to specify input name Signed-off-by: Jiada Wang --- Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt b/Documentation/devicetree/bindings/input/atmel,maxtouch.txt

[PATCH v11 25/56] Input: atmel_mxt_ts - add config checksum attribute to sysfs

2020-05-07 Thread Jiada Wang
From: karl tsou Add config checksum attribute to sysfs Signed-off-by: karl tsou Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 03477477ddbe5dcad42853ab3f84166a8f807acf) [gdavis: Forward port and fix conflicts.] Signed-off-by: George G. Davis [jiada: Add commit

[PATCH v11 33/56] Input: atmel_mxt_ts - delay enabling IRQ when not using regulators

2020-05-07 Thread Jiada Wang
interrupt until it is first needed, by set flag IRQ_NOAUTOEN. Signed-off-by: Jiada Wang CC: Dmitry Osipenko --- drivers/input/touchscreen/atmel_mxt_ts.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen

[PATCH v11 35/56] Input: atmel_mxt_ts - orientation is not present in hover

2020-05-07 Thread Jiada Wang
From: Nick Dyer When in hover, the orientation information is not sent Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 0c885d5bd276bd9240c43aa046fc407cbe2ae864) Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen

[PATCH v11 32/56] Input: atmel_mxt_ts - make bootloader interrupt driven

2020-05-07 Thread Jiada Wang
emove platform data support").] Signed-off-by: George G. Davis [jiada: Replace two use msecs_to_jiffies() instead of HZ, remove check of &data->flash->work don't poll to call mxt_check_bootloader() in mxt_check_bootloader()] Reported-by: kbuild test ro

[PATCH v11 28/56] Input: atmel_mxt_ts - refactor code to enter bootloader into separate func

2020-05-07 Thread Jiada Wang
Input: atmel_mxt_ts - remove platform data support").] Signed-off-by: George G. Davis [jiada: Squash change from ndyer/linux/for-upstream commit d691d3ee6c6de84b38464a42 3207b3e23cb9dc3a - Input: atmel_mxt_ts - check firmware format before entering bootloader Add commit d

[PATCH v11 31/56] Input: atmel_mxt_ts - rename bl_completion to chg_completion

2020-05-07 Thread Jiada Wang
xt_ts - remove platform data support").] Signed-off-by: George G. Davis [jiada: call complete(&data->chg_completion) only when in_bootloader is TRUE Add commit description] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 23 +++---

[PATCH v11 26/56] Input: atmel_mxt_ts - rename mxt_object_show to object_show

2020-05-07 Thread Jiada Wang
Rename mxt_object_show() to object_show(), so that object attr can also use DEVICE_ATTR_[RO|WO] to align with other attrs. Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen

[PATCH v11 30/56] Input: atmel_mxt_ts - improve bootloader state machine handling

2020-05-07 Thread Jiada Wang
463e15ee95ee6e6274017ff645839dbe34d75c99) [gdavis: Squash fix from George G. Davis: - input: atmel_mxt_ts - Fix 'mxt_send_bootloader_cmd' was not declared warning] Signed-off-by: George G. Davis [jiada: only wait on some status change, cleanup code style] Signed-off-by: Jiada Wang --- dri

[PATCH v11 23/56] Input: atmel_mxt_ts - allow input name to be specified in platform data

2020-05-07 Thread Jiada Wang
cbf94a7bda754d2e1899d9f50313a0bccc91422d) [gdavis: Resolve forward port conflicts due to applying upstream commit 96a938aa214e ("Input: atmel_mxt_ts - remove platform data support").] Signed-off-by: George G. Davis [jiada: Separate Documentation/ portion change to another commit] Sig

[PATCH v11 22/56] dt-bindings: input: atmel: provide name of configuration file

2020-05-07 Thread Jiada Wang
Add support to set name of configuration file Signed-off-by: Jiada Wang --- Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt b/Documentation/devicetree/bindings/input

[PATCH v11 20/56] Input: atmel_mxt_ts - handle cfg filename via pdata/sysfs

2020-05-07 Thread Jiada Wang
96a938aa214e ("Input: atmel_mxt_ts - remove platform data support").] Signed-off-by: George G. Davis [gdavis: Squash fix from Vladimir Zapolskiy: - Input: atmel_mxt_ts - fix error paths in mxt_configure_objects()] Signed-off-by: Vladimir Zapolskiy [jiada: Separate Doc

[PATCH v11 27/56] Input: atmel_mxt_ts - refactor firmware flash to extract context into struct

2020-05-07 Thread Jiada Wang
From: Nick Dyer Refactor firmware flash to extract context into struct Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 1bbe20ff3dcd6612e7942c495929eae5c138ece2) Signed-off-by: George G. Davis [jiada: Add commit description] Signed-off-by: Jiada Wang --- drivers

[PATCH v11 21/56] Input: atmel_mxt_ts - check data->input_dev is not null in mxt_input_sync()

2020-05-07 Thread Jiada Wang
George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 503e70603a67..85b903b8d5c9 100644 ---

[PATCH v11 29/56] Input: atmel_mxt_ts - combine bootloader version query with probe

2020-05-07 Thread Jiada Wang
a2d141f170c80fea6663af98aab0be32abc0ddb0) Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 45 +++- 1 file changed, 13 insertions(+), 32 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH v11 18/56] Input: atmel_mxt_ts: Rename mxt_hw_version_show to hw_version_show

2020-05-07 Thread Jiada Wang
Rename mxt_hw_version_show to hw_version_show to address checkpatch warning Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen

[PATCH v11 16/56] Input: atmel_mxt_ts - allow specification of firmware file name

2020-05-07 Thread Jiada Wang
: Nick Dyer Acked-by: Benson Leung Acked-by: Yufeng Shen (cherry picked from ndyer/linux/for-upstream commit 76ebb7cee971cb42dfb0a3a9224403b8b09abcf1) [gdavis: Forward port and fix conflicts.] Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH v11 19/56] Input: atmel_mxt_ts: rename mxt_update_fw_store to update_fw_store

2020-05-07 Thread Jiada Wang
Rename mxt_update_fw_store to update_fw_store, to address checkpatch warning. Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen

[PATCH v11 17/56] Input: atmel_mxt_ts: Rename mxt_fw_version_show to fw_version_show

2020-05-07 Thread Jiada Wang
Rename mxt_fw_version_show to fw_version_show to address checkpatch warning Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen

[PATCH v11 15/56] Input: atmel_mxt_ts - report failures in suspend/resume

2020-05-07 Thread Jiada Wang
tform data support").] Signed-off-by: George G. Davis [jiada: Fix compilation warning Add commit description] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 51 ++-- 1 file changed, 39 insertions(+), 12 deletions(-) diff --git a/dri

[PATCH v11 14/56] Input: atmel_mxt_ts - add regulator control support

2020-05-07 Thread Jiada Wang
xt_ts - disable only enabled regulators - Input: atmel_mxt_ts - use devm_regulator_get()] Signed-off-by: Dirk Behme [jiada: Replace white-spaces with tab for MXT_CHG_DELAY separate Documentation/ and include/dt-bindings/ portion change to another commit] Signed-off-by: Jiada Wang

[PATCH v11 11/56] Input: atmel_mxt_ts - add debug for T92 gesture and T93 touch seq msgs

2020-05-07 Thread Jiada Wang
From: Karl Tsou output T92 gesture and T93 touch sequence messages. Signed-off-by: Karl Tsou Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit cb98986f8342107bf4a536aed4160b20839e97c1) Signed-off-by: George G. Davis Reported-by: kbuild test robot [jiada: changed

[PATCH v11 10/56] Input: atmel_mxt_ts - implement support for T107 active stylus

2020-05-07 Thread Jiada Wang
Input: atmel_mxt_ts - remove platform data support").] Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 117 ++- 1 file changed, 113 insertions(+), 4 deletions(-) diff --git a/drivers/input/touchscreen/atmel_m

[PATCH v11 00/56] atmel_mxt_ts misc

2020-05-07 Thread Jiada Wang
ng (1): Input: atmel_mxt_ts - check data->input_dev is not null in mxt_input_sync() Jiada Wang (12): Input: introduce input_mt_report_slot_inactive dt-bindings: input: atmel: add suspend mode support Input: atmel_mxt_ts: Rename mxt_fw_version_show to fw_version_show Input: at

[PATCH v11 02/56] Input: atmel_mxt_ts - rework sysfs init/remove

2020-05-07 Thread Jiada Wang
leaks in both the mxt_initialize() and mxt_probe() error return cases.] Signed-off-by: George G. Davis [jiada: keep call mxt_initialize() before sysfs creation replace S_IWUSR with 0200] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 64

[PATCH v11 13/56] dt-bindings: input: atmel: add suspend mode support

2020-05-07 Thread Jiada Wang
Add suspend mode support for atmel touchscreen driver Signed-off-by: Jiada Wang --- .../bindings/input/atmel,maxtouch.txt | 9 MAINTAINERS | 1 + include/dt-bindings/input/atmel_mxt_ts.h | 23 +++ 3 files changed, 33

[PATCH v11 06/56] Input: atmel_mxt_ts - output status from T42 Touch Suppression

2020-05-07 Thread Jiada Wang
From: Nick Dyer This patch outputs status from T42 touch suppression Signed-off-by: Nick Dyer Acked-by: Benson Leung Acked-by: Yufeng Shen (cherry picked from ndyer/linux/for-upstream commit ab95b5a30d2c098daaa9f88d9fcfae7eb516) Signed-off-by: George G. Davis [jiada: Replace dev_info

[PATCH v11 01/56] Input: introduce input_mt_report_slot_inactive

2020-05-07 Thread Jiada Wang
. Suggested-by: Dmitry Torokhov Reported-by: kernel test robot Signed-off-by: Jiada Wang --- drivers/hid/hid-alps.c | 3 +-- drivers/hid/hid-multitouch.c | 6 ++ drivers/input/misc/xen-kbdfront.c | 2 +- drivers/input/mouse/elan_i2c_core.c| 2

[PATCH v11 05/56] Input: atmel_mxt_ts - output status from T48 Noise Supression

2020-05-07 Thread Jiada Wang
From: Nick Dyer This patch outputs status from T48 Noise Supression Signed-off-by: Nick Dyer Acked-by: Benson Leung Acked-by: Yufeng Shen (cherry picked from ndyer/linux/for-upstream commit 2895a6ff150a49f27a02938f8d262be238b296d8) Signed-off-by: George G. Davis Signed-off-by: Jiada Wang

  1   2   3   4   5   6   >