[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 struc

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

2020-09-30 Thread Jiada Wang
once 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

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

2020-09-25 Thread Jiada Wang
once 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
once 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

[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
to 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 ++

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

2020-09-11 Thread Jiada Wang
exact errno when i2c_transfer & i2c_master_send fails rename "retry" to "retried" and keep its order in length set "ret" to correct errno before calling dev_err() remove reduntant conditional] Signed-off-by: Jiada Wang Reviewed-by:

[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

[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
sh default firmware file, when user specified firmware can't be found] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 33 +++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/t

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

2020-07-31 Thread Jiada Wang
-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 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
() with dev_dbg(), Move logical continuation to previous line to address checkpatch CHECK] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 25 1 file changed, 25 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers

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

2020-07-29 Thread Jiada Wang
with symbolic names, Fixed typo in commit title & message] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_

[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
Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 56 ++-- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index a2189739e30f..6b71b0aff115 100644 --- a/dri

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

2020-07-20 Thread Jiada Wang
).] 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/input/t

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

2020-05-08 Thread Jiada Wang
. 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/touchscreen

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

2020-05-08 Thread Jiada Wang
).] 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/input/t

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

2020-05-08 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-08 Thread Jiada Wang
DEVICE_ATTR with DEVICE_ATTR_RW] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 102 +++ 1 file changed, 102 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 5c2f4ea1a362..e75a7e5b0c59

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

2020-05-08 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-08 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-08 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-08 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-08 Thread Jiada Wang
ymore, but 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-08 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-08 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-08 Thread Jiada Wang
nable_show Replace DEVICE_ATTR with DEVICE_ATTR_RW] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 46 ++-- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_

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

2020-05-08 Thread Jiada Wang
da: Rename mxt_debug_notify_show to debug_notify_show Rename mxt_debug_v2_enable_store to debug_v2_enable_store Add debug_v2_enable_show Replace DEVICE_ATTR with DEVICE_ATTR_[RW|RO] ] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 201 +

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

2020-05-08 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-08 Thread Jiada Wang
Modifying 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-08 Thread Jiada Wang
68>] (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-08 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-08 Thread Jiada Wang
-by: 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-08 Thread Jiada Wang
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 index

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

2020-05-08 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-08 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-08 Thread Jiada Wang
, then 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-08 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
description Rename mxt_config_crc_show to config_crc_show Replace DEVICE_ATTR with DEVICE_ATTR_RO] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b

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

2020-05-07 Thread Jiada Wang
the 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 >flash->work don't poll to call mxt_check_bootloader() in mxt_check_bootloader()] Reported-by: kbuild test robot Signed-of

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

2020-05-07 Thread Jiada Wang
escription] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 43 +++- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index bb4fc13defea..674763ddd

[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(>chg_completion) only when in_bootloader is TRUE Add commit description] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 23 +++ 1 fil

[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 --- drivers/input

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

2020-05-07 Thread Jiada Wang
Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 85b903b8d5c9..affd2bf32969 100644 --- a/drivers/input/t

[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
umentation/ portion change to another commit Rename mxt_update_cfg_store to update_cfg_store Replace DEVICE_ATTR with DEVICE_ATTR_WO Allow to fallback to legacy cfg name "maxtouch.cfg", if atmel,cfg_name isn't specified in device-tree] Signed-off-by: Jiada Wang

[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
-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 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
dev_debug() to dev_info()] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 40 1 file changed, 40 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 63db8b66eb67..6126bb8a7acc

[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
): 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: atmel_m

[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
() with dev_dbg()] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 25 1 file changed, 25 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index a53985a7736f..f6465edaa57e 100644

[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

[PATCH v11 12/56] Input: atmel_mxt_ts - release touch state during suspend

2020-05-07 Thread Jiada Wang
From: Nick Dyer If fingers are down as the MXT chip goes into suspend it does not send a lift message. In addition, it may not complete its final measurement cycle immediately, which means touch messages may be received by the interrupt handler after mxt_stop() has completed. So: - disable irq

[PATCH v11 09/56] Input: atmel_mxt_ts - handle reports from T47 Stylus object

2020-05-07 Thread Jiada Wang
From: Nick Dyer This patch handles reports from T47 Stylus object Signed-off-by: Nick Dyer Acked-by: Benson Leung Acked-by: Yufeng Shen (cherry picked from ndyer/linux/for-upstream commit 56405a5ea08eb34cfe83f3121867c9de0a5c48c1) Signed-off-by: George G. Davis Signed-off-by: Jiada Wang

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

2020-05-07 Thread Jiada Wang
-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index f6465edaa57e..df2e0ba76e63 100644 --- a/drivers/input/touchscreen

[PATCH v11 08/56] Input: atmel_mxt_ts - implement T15 Key Array support

2020-05-07 Thread Jiada Wang
jiada: Fix compilation warning] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 85 1 file changed, 85 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index df2e0ba76e63..d05249b02781 100644 ---

Re: [PATCH v3 02/49] Input: introduce input_mt_report_slot_inactive

2019-09-24 Thread Jiada Wang
Hi Henrik On 2019/09/18 3:25, Henrik Rydberg wrote: Hi Jiada, input_mt_report_slot_state() ignores the tool when the slot is closed. which has caused a bit of confusion. This patch introduces input_mt_report_slot_inactive() to report slot inactive state. replaces all

[PATCH v3 49/49] Input: atmel_mxt_ts - Fix compilation warning

2019-09-17 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 v3 43/49] Input: Atmel: handle ReportID "0x00" while processing T5 messages

2019-09-17 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 v3 40/49] Input: Atmel: improve error handling in mxt_initialize()

2019-09-17 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 v3 42/49] Input: Atmel: Improve error handling in mxt_initialize_input_device()

2019-09-17 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 v3 41/49] Input: Atmel: improve error handling in mxt_update_cfg()

2019-09-17 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 v3 39/49] Input: Atmel: improve error handling in mxt_start()

2019-09-17 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 f2fa62289577..2fac43da0a2b 100644 --- a/driv

[PATCH v3 47/49] input: atmel_mxt_ts: added sysfs interface to update atmel T38 data

2019-09-17 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 Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 102 +++ 1 file changed

[PATCH v3 45/49] Input: atmel_mxt_ts: use gpiod_set_value_cansleep for reset pin

2019-09-17 Thread Jiada Wang
68>] (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 v3 46/49] input: touchscreen: atmel_mxt_ts: Added sysfs entry for touchscreen status

2019-09-17 Thread Jiada Wang
value 0 represents device is inactive value 1 represents device is active 2)Error counter value represents the number of times device in inactive since last read Signed-off-by: Naveen Chakka Signed-off-by: Sanjeev Chugh Signed-off-by: George G. Davis Signed-off-by: Jiada Wang

[PATCH v3 44/49] Input: Atmel: use T44 object to process T5 messages

2019-09-17 Thread Jiada Wang
ymore, but 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 v3 48/49] Input: atmel_mxt_ts: Implement synchronization during various operation

2019-09-17 Thread Jiada Wang
dule is already removed. This commit adds state machine to serialize such scenarios. Signed-off-by: Sanjeev Chugh Signed-off-by: Bhuvanesh Surachari Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 222 --- 1 file changed, 196 insertions(+), 26 deletions

[PATCH v3 37/49] Input: atmel_mxt_ts: Limit the max bytes transferred in an i2c transaction

2019-09-17 Thread Jiada Wang
Signed-off-by: Balasubramani Vivekanandan Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- .../bindings/input/atmel,maxtouch.txt | 3 + drivers/input/touchscreen/atmel_mxt_ts.c | 65 +++ 2 files changed, 54 insertions(+), 14 deletions(-) diff --git

[PATCH v3 38/49] Input: atmel_mxt_ts: return error from mxt_process_messages_until_invalid()

2019-09-17 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 v3 32/49] Input: atmel_mxt_ts - Change call-points of mxt_free_* functions

2019-09-17 Thread Jiada Wang
-by: 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 v3 33/49] Input: atmel_mxt_ts - rely on calculated_crc rather than file config_crc

2019-09-17 Thread Jiada Wang
, then 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 v3 34/49] input: atmel_mxt_ts: export GPIO reset line via sysfs

2019-09-17 Thread Jiada Wang
Modifying 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 v3 35/49] input: atmel_mxt_ts: Add Missing Delay for reset handling of Atmel touch panel controller in detachable displays.

2019-09-17 Thread Jiada Wang
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 index

[PATCH v3 36/49] Input: atmel_mxt_ts: Add support for run self-test routine.

2019-09-17 Thread Jiada Wang
-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 111 +++ 1 file changed, 111 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 4fa27e2f7163..183832e3bd71 100644

  1   2   3   4   5   6   7   >