[PATCH v2 05/49] Input: atmel_mxt_ts - split large i2c transfers into blocks

2019-08-26 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 v2 07/49] Input: atmel_mxt_ts - output status from T42 Touch Suppression

2019-08-26 Thread Jiada Wang
From: Nick Dyer 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() with dev_dbg()] Signed-off-by: Jiada Wang

[PATCH v2 06/49] Input: atmel_mxt_ts - output status from T48 Noise Supression

2019-08-26 Thread Jiada Wang
From: Nick Dyer 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 --- drivers/input/touchscreen/atmel_mxt_ts.c | 25

[PATCH v2 11/49] Input: atmel_mxt_ts - implement support for T107 active stylus

2019-08-26 Thread Jiada Wang
pport").] 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_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_

[PATCH v2 13/49] Input: atmel_mxt_ts - release touch state during suspend

2019-08-26 Thread Jiada Wang
-off-by: Dirk Behme --- Notes: - Squash fix from Dirk Behme: + Input: atmel_mxt_ts - remove superfluous data->suspended data->suspended is already set to false in mxt_load_fw(), so it's not needed here. Signed-off-by: Jiada Wang --- drivers/input/touchsc

[PATCH v2 14/49] Input: atmel_mxt_ts - add regulator control support

2019-08-26 Thread Jiada Wang
o devm_regulator_get() enabling us to drop the regulator_put() in the remove function. [jiada: Resolve forward port conflicts due to commit 5cecc2bccc03f ("Input: atmel_mxt_ts - fix -Wunused-const-variable")] Signed-off-by: Jiada Wang --- .../bindings/input/at

[PATCH v2 19/49] Input: atmel_mxt_ts - add config checksum attribute to sysfs

2019-08-26 Thread Jiada Wang
From: 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 Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 11

[PATCH v2 18/49] Input: atmel_mxt_ts - allow input name to be specified in platform data

2019-08-26 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 Signed-off-by: Jiada Wang --- .../devicetree/bindings/i

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

2019-08-26 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 v2 15/49] Input: atmel_mxt_ts - report failures in suspend/resume

2019-08-26 Thread Jiada Wang
: George G. Davis [jiada: Fix compilation warning] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 51 ++-- 1 file changed, 39 insertions(+), 12 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_

[PATCH v2 17/49] Input: atmel_mxt_ts - handle cfg filename via pdata/sysfs

2019-08-26 Thread Jiada Wang
eam commit c909ada856861f305653b127db3ea0fa60264331 - Input: atmel_mxt_ts - check data->input_dev is not null in mxt_input_sync()] Signed-off-by: Jiada Wang --- .../bindings/input/atmel,maxtouch.txt | 3 + drivers/input/touchscreen/atmel_mxt_ts.c | 109 +++--- 2 files changed, 97 inse

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

2019-08-26 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 23/49] Input: atmel_mxt_ts - improve bootloader state machine handling

2019-08-26 Thread Jiada Wang
nd_bootloader_cmd' was not declared. Should it be static? Fix the above sparse warning by restoring the 'mxt_send_bootloader_cmd' static declaration which was errantly removed by ndyer/linux/for-upstream commit 463e15ee95ee ("Input: atmel_mxt_ts - improve bootload

[PATCH v2 24/49] Input: atmel_mxt_ts - rename bl_completion to chg_completion

2019-08-26 Thread Jiada Wang
pport").] Signed-off-by: George G. Davis [jiada: call complete(&data->chg_completion) only when in_bootloader is TRUE] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --gi

[PATCH v2 22/49] Input: atmel_mxt_ts - combine bootloader version query with probe

2019-08-26 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 v2 25/49] Input: atmel_mxt_ts - make bootloader interrupt driven

2019-08-26 Thread Jiada Wang
pport").] Signed-off-by: George G. Davis [jiada: Replace two use msecs_to_jiffies() instead of HZ] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 118 --- 1 file changed, 60 insertions(+), 58 deletions(-) diff --git a/drivers/input/touchscreen/atme

[PATCH v2 21/49] Input: atmel_mxt_ts - refactor code to enter bootloader into separate func

2019-08-26 Thread Jiada Wang
pport").] 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] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt

[PATCH v2 26/49] Input: atmel_mxt_ts - delay enabling IRQ when not using regulators

2019-08-26 Thread Jiada Wang
naged resources") and applying upstream commit 96a938aa214e ("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 | 40 +++- 1 file changed,

[PATCH v2 20/49] Input: atmel_mxt_ts - refactor firmware flash to extract context into struct

2019-08-26 Thread Jiada Wang
From: Nick Dyer Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 1bbe20ff3dcd6612e7942c495929eae5c138ece2) Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 59 +++- 1 file changed, 36

[PATCH v2 29/49] Input: atmel_mxt_ts - implement debug output for messages

2019-08-26 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 Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 44 ++-- 1 file c

[PATCH v2 33/49] Input: atmel_mxt_ts - rely on calculated_crc rather than file config_crc

2019-08-26 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 v2 30/49] Input: atmel_mxt_ts - implement improved debug message interface

2019-08-26 Thread Jiada Wang
now is not called from mxt_free_object_table() avoiding multiple double deallocations. [jiada: Add NULL check for sysfs attribute debug_msg_attr] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 194 ++- 1 file changed, 192 insertions(+), 2 deletions(-

[PATCH v2 34/49] input: atmel_mxt_ts: export GPIO reset line via sysfs

2019-08-26 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 v2 39/49] Input: Atmel: improve error handling in mxt_start()

2019-08-26 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 e9a895473ed8..dd70f3b9678f 100644 --- a/driv

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

2019-08-26 Thread Jiada Wang
ranscation 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(-) di

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

2019-08-26 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 v2 28/49] Input: atmel_mxt_ts - orientation is not present in hover

2019-08-26 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 v2 36/49] Input: atmel_mxt_ts: Add support for run self-test routine.

2019-08-26 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 192cf47ff5f4..aa33962ed1dc 100644

[PATCH v2 32/49] Input: atmel_mxt_ts - Change call-points of mxt_free_* functions

2019-08-26 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 v2 31/49] Input: atmel_mxt_ts - eliminate data->raw_info_block

2019-08-26 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 v2 35/49] input: atmel_mxt_ts: Add Missing Delay for reset handling of Atmel touch panel controller in detachable displays.

2019-08-26 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 v2 45/49] Input: atmel_mxt_ts: use gpiod_set_value_cansleep for reset pin

2019-08-26 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 v2 47/49] input: atmel_mxt_ts: added sysfs interface to update atmel T38 data

2019-08-26 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 v2 42/49] Input: Atmel: Improve error handling in mxt_initialize_input_device()

2019-08-26 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 v2 40/49] Input: Atmel: improve error handling in mxt_initialize()

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

2019-08-26 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 v2 44/49] Input: Atmel: use T44 object to process T5 messages

2019-08-26 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 v2 41/49] Input: Atmel: improve error handling in mxt_update_cfg()

2019-08-26 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 v2 46/49] input: touchscreen: atmel_mxt_ts: Added sysfs entry for touchscreen status

2019-08-26 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 v2 48/49] Input: atmel_mxt_ts: Implement synchronization during various operation

2019-08-26 Thread Jiada Wang
ggered. But kernel crashes since the module 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

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

2019-08-26 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

Re: [PATCH v1 31/63] Input: atmel_mxt_ts - add memory access interface via sysfs

2019-08-22 Thread Jiada Wang
Hi Dmitry On 2019/08/17 2:29, Dmitry Torokhov wrote: On Fri, Aug 16, 2019 at 05:34:19PM +0900, Jiada Wang wrote: From: Nick Dyer Atmel maXTouch chips can be addressed via an "Object Based Protocol" which defines how i2c registers are mapped to different functions within the c

Re: [PATCH v1 36/63] Input: atmel_mxt_ts - configure and use gpios as real gpios

2019-08-22 Thread Jiada Wang
Hi Dmitry On 2019/08/17 2:24, Dmitry Torokhov wrote: On Fri, Aug 16, 2019 at 05:34:58PM +0900, Jiada Wang wrote: From: Kautuk Consul The upstream Atmel mXT driver implementation seems to handle the T19 GPIO/PWM object as a key pad. Keys can be defined in the device tree ("linux,gpio-k

[PATCH v3 00/49] atmel_mxt_ts misc

2019-09-17 Thread Jiada Wang
Input: Atmel: Improve error handling in mxt_initialize_input_device() Input: Atmel: handle ReportID "0x00" while processing T5 messages Input: Atmel: use T44 object to process T5 messages George G. Davis (1): input: atmel_mxt_ts: export GPIO reset line via sysfs Jiada Wang (4): I

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

2019-09-17 Thread Jiada Wang
quot;).] Signed-off-by: George G. Davis [jiada: reset use_retrigen_workaround at beginning of mxt_check_retrigen()] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 51 ++-- 1 file changed, 48 insertions(+), 3 deletions(-) diff --git a/drivers/in

[PATCH v3 01/49] Input: switch to use return value of input_mt_report_slot_state

2019-09-17 Thread Jiada Wang
tead of checking 'active', switch to use return value of input_mt_report_slot_state() Signed-off-by: Jiada Wang --- drivers/hid/hid-asus.c | 3 +-- drivers/hid/hid-elan.c | 3 +-- drivers/hid/hid-logitech-hidpp.c| 5 ++--- dr

[PATCH v3 03/49] Input: atmel_mxt_ts - rework sysfs init/remove

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

[PATCH v3 02/49] Input: introduce input_mt_report_slot_inactive

2019-09-17 Thread Jiada Wang
. Signed-off-by: Jiada Wang --- drivers/hid/hid-alps.c | 3 +-- drivers/hid/hid-multitouch.c | 6 ++ drivers/input/input-mt.c | 2 +- drivers/input/misc/xen-kbdfront.c | 2 +- drivers/input/mouse/elan_i2c_core.c| 2 +- drivers

[PATCH v3 05/49] Input: atmel_mxt_ts - split large i2c transfers into blocks

2019-09-17 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 v3 06/49] Input: atmel_mxt_ts - output status from T48 Noise Supression

2019-09-17 Thread Jiada Wang
From: Nick Dyer 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 --- drivers/input/touchscreen/atmel_mxt_ts.c | 25

[PATCH v3 07/49] Input: atmel_mxt_ts - output status from T42 Touch Suppression

2019-09-17 Thread Jiada Wang
From: Nick Dyer 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() with dev_dbg()] Signed-off-by: Jiada Wang

[PATCH v3 08/49] Input: atmel_mxt_ts - implement T9 vector/orientation support

2019-09-17 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 19fa3e58269a..68c8237f7932 100644 --- a/drivers/input/touchscreen

[PATCH v3 09/49] Input: atmel_mxt_ts - implement T15 Key Array support

2019-09-17 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 68c8237f7932..1d738c488bdd 100644 ---

[PATCH v3 13/49] Input: atmel_mxt_ts - release touch state during suspend

2019-09-17 Thread Jiada Wang
-off-by: Dirk Behme --- Notes: - Squash fix from Dirk Behme: + Input: atmel_mxt_ts - remove superfluous data->suspended data->suspended is already set to false in mxt_load_fw(), so it's not needed here. Signed-off-by: Jiada Wang --- drivers/input/touchsc

[PATCH v3 11/49] Input: atmel_mxt_ts - implement support for T107 active stylus

2019-09-17 Thread Jiada Wang
pport").] 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_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_

[PATCH v3 12/49] Input: atmel_mxt_ts - add debug for T92 gesture and T93 touch seq msgs

2019-09-17 Thread Jiada Wang
From: Karl Tsou output T92 gesture and T93 touch sequence messages. Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit cb98986f8342107bf4a536aed4160b20839e97c1) Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c

[PATCH v3 10/49] Input: atmel_mxt_ts - handle reports from T47 Stylus object

2019-09-17 Thread Jiada Wang
From: Nick Dyer 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 --- drivers/input/touchscreen/atmel_mxt_ts.c | 12

[PATCH v3 14/49] Input: atmel_mxt_ts - add regulator control support

2019-09-17 Thread Jiada Wang
o devm_regulator_get() enabling us to drop the regulator_put() in the remove function. [jiada: Resolve forward port conflicts due to commit 5cecc2bccc03f ("Input: atmel_mxt_ts - fix -Wunused-const-variable")] Signed-off-by: Jiada Wang --- .../bindings/input/at

[PATCH v3 17/49] Input: atmel_mxt_ts - handle cfg filename via pdata/sysfs

2019-09-17 Thread Jiada Wang
eam commit c909ada856861f305653b127db3ea0fa60264331 - Input: atmel_mxt_ts - check data->input_dev is not null in mxt_input_sync()] Signed-off-by: Jiada Wang --- .../bindings/input/atmel,maxtouch.txt | 3 + drivers/input/touchscreen/atmel_mxt_ts.c | 109 +++--- 2 files changed, 97 inse

[PATCH v3 18/49] Input: atmel_mxt_ts - allow input name to be specified in platform data

2019-09-17 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 Signed-off-by: Jiada Wang --- .../devicetree/bindings/i

[PATCH v3 15/49] Input: atmel_mxt_ts - report failures in suspend/resume

2019-09-17 Thread Jiada Wang
: George G. Davis [jiada: Fix compilation warning] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 51 ++-- 1 file changed, 39 insertions(+), 12 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_

[PATCH v3 16/49] Input: atmel_mxt_ts - allow specification of firmware file name

2019-09-17 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 v3 19/49] Input: atmel_mxt_ts - add config checksum attribute to sysfs

2019-09-17 Thread Jiada Wang
From: 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 Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 11

[PATCH v3 21/49] Input: atmel_mxt_ts - refactor code to enter bootloader into separate func

2019-09-17 Thread Jiada Wang
pport").] 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] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt

[PATCH v3 23/49] Input: atmel_mxt_ts - improve bootloader state machine handling

2019-09-17 Thread Jiada Wang
nd_bootloader_cmd' was not declared. Should it be static? Fix the above sparse warning by restoring the 'mxt_send_bootloader_cmd' static declaration which was errantly removed by ndyer/linux/for-upstream commit 463e15ee95ee ("Input: atmel_mxt_ts - improve bootload

[PATCH v3 24/49] Input: atmel_mxt_ts - rename bl_completion to chg_completion

2019-09-17 Thread Jiada Wang
pport").] Signed-off-by: George G. Davis [jiada: call complete(&data->chg_completion) only when in_bootloader is TRUE] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --gi

[PATCH v3 25/49] Input: atmel_mxt_ts - make bootloader interrupt driven

2019-09-17 Thread Jiada Wang
pport").] Signed-off-by: George G. Davis [jiada: Replace two use msecs_to_jiffies() instead of HZ] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 118 --- 1 file changed, 60 insertions(+), 58 deletions(-) diff --git a/drivers/input/touchscreen/atme

[PATCH v3 22/49] Input: atmel_mxt_ts - combine bootloader version query with probe

2019-09-17 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 v3 20/49] Input: atmel_mxt_ts - refactor firmware flash to extract context into struct

2019-09-17 Thread Jiada Wang
From: Nick Dyer Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 1bbe20ff3dcd6612e7942c495929eae5c138ece2) Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 59 +++- 1 file changed, 36

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

2019-09-17 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 v3 28/49] Input: atmel_mxt_ts - orientation is not present in hover

2019-09-17 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 v3 26/49] Input: atmel_mxt_ts - delay enabling IRQ when not using regulators

2019-09-17 Thread Jiada Wang
naged resources") and applying upstream commit 96a938aa214e ("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 | 40 +++- 1 file changed,

[PATCH v3 31/49] Input: atmel_mxt_ts - eliminate data->raw_info_block

2019-09-17 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 v3 30/49] Input: atmel_mxt_ts - implement improved debug message interface

2019-09-17 Thread Jiada Wang
now is not called from mxt_free_object_table() avoiding multiple double deallocations. [jiada: Add NULL check for sysfs attribute debug_msg_attr] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 194 ++- 1 file changed, 192 insertions(+), 2 deletions(-

[PATCH v3 29/49] Input: atmel_mxt_ts - implement debug output for messages

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

[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
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 v3 34/49] input: atmel_mxt_ts: export GPIO reset line via sysfs

2019-09-17 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 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

[PATCH v3 32/49] Input: atmel_mxt_ts - Change call-points of mxt_free_* functions

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

2019-09-17 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 v3 37/49] Input: atmel_mxt_ts: Limit the max bytes transferred in an i2c transaction

2019-09-17 Thread Jiada Wang
ranscation 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(-) di

[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 48/49] Input: atmel_mxt_ts: Implement synchronization during various operation

2019-09-17 Thread Jiada Wang
ggered. But kernel crashes since the module 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

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

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 input_mt_report_slot_stat

Re: [PATCH v1 00/63] atmel_mxt_ts misc

2019-08-19 Thread Jiada Wang
HiDmitrij On 2019/08/17 2:32, Dmitry Torokhov wrote: Hi Jiada, On Fri, Aug 16, 2019 at 05:28:49PM +0900, 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 I see a lot of chages that are fixups for

[PATCH v1 0/2] rsnd: dts: change to use extended audio dmac register

2019-02-19 Thread Jiada Wang
-W (= r8a7796) to use extended audio dmac registers Jiada Wang (2): arm64: dts: renesas: r8a7795: use extended audio dmac register arm64: dts: renesas: r8a7796: use extended audio dmac register arch/arm64/boot/dts/renesas/r8a7795.dtsi | 2 +- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 2 +- 2

[PATCH v1 1/2] arm64: dts: renesas: r8a7795: use extended audio dmac register

2019-02-19 Thread Jiada Wang
Basic audio dmac register only supports busif from 0 to 3, in order to use busif4 ~ busif7, extended audio dmac register need to be used. Signed-off-by: Jiada Wang --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot

[PATCH v1 2/2] arm64: dts: renesas: r8a7796: use extended audio dmac register

2019-02-19 Thread Jiada Wang
Basic audio dmac register only supports busif from 0 to 3, in order to use busif4 ~ busif7, extended audio dmac register need to be used Signed-off-by: Jiada Wang --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts

[PATCH] ASoC: rsnd: ssiu: correct shift bit for ssiu9

2019-02-04 Thread Jiada Wang
is patch fix incorrect shifting issue in SSIU-9 case Fixes: commit b7169ddea2f2 ("ASoC: rsnd: remove RSND_REG_ from rsnd_reg") Signed-off-by: Jiada Wang --- sound/soc/sh/rcar/ssiu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sh/rcar/ssiu.

[PATCH 1/1] thermal: rcar_gen3_thermal: Fix to show correct trip points number

2019-05-09 Thread Jiada Wang
on. Fixes: 6269e9f790e8d ("thermal: rcar_gen3_thermal: Register hwmon sysfs interface") Signed-off-by: Jiada Wang --- drivers/thermal/rcar_gen3_thermal.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/rcar_gen3_thermal.c b/drivers/thermal

<    1   2   3   4   5   >