[PATCH 05/10] dma: imx-sdma: add flag to indicate SDMA channel state

2016-05-16 Thread Jiada Wang
nnel to indicate its state. only when SDMA channel is in its enabled state, irq handler can schedule a sdma tasklet for it. Signed-off-by: Jiada Wang --- drivers/dma/imx-sdma.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/

[PATCH 02/10] dma: imx-sdma: don't update BD in isr routine

2016-05-16 Thread Jiada Wang
So move updating of BD back to tasklet. Signed-off-by: Jiada Wang --- drivers/dma/imx-sdma.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 1f1b64b..887e4e5 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dm

[PATCH 01/10] dma: imx-sdma: use chn_real_count to report residue for UART

2016-05-16 Thread Jiada Wang
ned-off-by: Jiada Wang --- drivers/dma/imx-sdma.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 0f6fd42..1f1b64b 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -680,6 +680,11 @@ s

[PATCH 09/10] dma: imx-sdma: disable channel 0 when it timeouts

2016-05-16 Thread Jiada Wang
Previously when channel0 timeouts to finish its task, sdma_run_channel0() just returns without disable channel0, this will cause continuous interrupt later when channel0 finishs its task and set channel0 interrupt bit. Signed-off-by: Jiada Wang --- drivers/dma/imx-sdma.c | 43

[PATCH 06/10] dma: imx-sdma: add terminate_all support

2016-05-16 Thread Jiada Wang
Implement device_terminate_all(), so that dmaengine_terminate_async() can work. Signed-off-by: Jiada Wang --- drivers/dma/imx-sdma.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index ef5d37c..040cbf2 100644 --- a/drivers/dma/imx

[PATCH 04/10] dma: imx-sdma: update sdma channel status for cyclic dma

2016-05-16 Thread Jiada Wang
buffer descriptor. Signed-off-by: Jiada Wang --- drivers/dma/imx-sdma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 1489de0..36f5e39 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -670,6 +670,8 @@ static void

[PATCH 03/10] dma: imx-sdma: clear BD_RROR flag before pass it to sdma script

2016-05-16 Thread Jiada Wang
ssful, but as BD_RROR flag is set, client side will still think the transfer failed. This patch clears BD_RROR flag before pass it to sdma script. Signed-off-by: Jiada Wang --- drivers/dma/imx-sdma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-s

[PATCH v1 00/10] *** imx-sdma: misc fix ***

2016-05-16 Thread Jiada Wang
this patch set contains the following changes 1. fix issues in cyclic dma 2. add support to SYNC DMA termination 3. avoid system hang, when SDMA channel 0 timeouts 4. add lock to prevent race condition Jiada Wang (10): dma: imx-sdma: use chn_real_count to report residue for UART dma: imx-sdma

[PATCH 02/10] dma: imx-sdma: don't update BD in isr routine

2016-05-16 Thread Jiada Wang
So move updating of BD back to tasklet. Signed-off-by: Jiada Wang --- drivers/dma/imx-sdma.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 1f1b64b..887e4e5 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dm

[PATCH] ASoC: fsl_ssi: free irq before irq_dispose_mapping()

2014-11-30 Thread Jiada Wang
lete_module) from [<8000ec20>] (ret_fast_syscall+0x0/0x48) [ 31.794824] r6:00c46d18 r5:0800 r4:00c46d18 [ 31.799530] ---[ end trace 954e8a3a15379e52 ]--- Moreover replace devm_request_irq() with request_irq() since there is no need to use it as now driver always frees IRQ ma

[PATCH v2 2/2] ASoC: fsl_ssi: use platform_get_irq instead of irq_of_parse_and_map

2014-12-01 Thread Jiada Wang
Use platform_get_irq as no mapping needs to be done. By using platform_get_irq, driver can avoid to free IRQ manually when SSI driver exits. Signed-off-by: Jiada Wang --- sound/soc/fsl/fsl_ssi.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/sound/soc/fsl

[PATCH v2 0/2] fsl_ssi misc fix

2014-12-01 Thread Jiada Wang
Hi, Changes in v2: - fix error path in probe - replace irq_of_parse_and_map with platform_get_irq Changes in v1: - free IRQ before irq_dispose_mapping Jiada Wang (2): ASoC: fsl_ssi: fix error path in probe ASoC: fsl_ssi: use platform_get_irq instead of

[PATCH v2 1/2] ASoC: fsl_ssi: fix error path in probe

2014-12-01 Thread Jiada Wang
SSI component isn't unregistered if fsl_ssi_debugfs_create() fails in probe phase. To fix it, this commit replaces label error_asoc_register with error_irq. Signed-off-by: Jiada Wang --- sound/soc/fsl/fsl_ssi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/so

[PATCH] ASoC: Codec: wm8962: balance pm_runtime_enable

2015-09-29 Thread Jiada Wang
emove callback and error path, to balance pm_runtime_enable. Signed-off-by: Jiada Wang --- sound/soc/codecs/wm8962.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 293e47a..2fbc6ef 100644 --- a/sound/soc/codecs/wm8

[PATCH] thermal: of-thermal: Reduce log level for message when can't fine thermal zone

2015-11-16 Thread Jiada Wang
Some systems register thermal zone by themself and don't need to have thermal zones node in DT. Therefore reduce the log level from ERROR to DEBUG when thermal zone node can't be find in of_thermal_destroy_zones(). Signed-off-by: Jiada Wang --- drivers/thermal/of-thermal.c | 2

[PATCH v2] thermal: of-thermal: Reduce log level for message when can't find thermal zone

2015-11-16 Thread Jiada Wang
Some systems register thermal zone by themself and don't need to have thermal zones node in DT. Therefore reduce the log level from ERROR to DEBUG when thermal zone node can't be found in of_thermal_destroy_zones(). Signed-off-by: Jiada Wang --- drivers/thermal/of-thermal.c | 2

Re: [PATCH v2] thermal: of-thermal: Reduce log level for message when can't find thermal zone

2015-11-16 Thread Jiada Wang
Hello On 11/17/2015 12:37 PM, Eduardo Valentin wrote: On Tue, Nov 17, 2015 at 11:43:34AM +0900, Jiada Wang wrote: Some systems register thermal zone by themself and don't need to have thermal zones node in DT. Therefore reduce the log level from ERROR to DEBUG when thermal zone node can

Re: [PATCH linux-next v2 1/2] ASoC: rsnd: src: Avoid a potential deadlock

2019-03-18 Thread Jiada Wang
Hi Fabrizio On 2019/03/14 3:19, Fabrizio Castro wrote: Hello Jiada, From: Jiada Wang Sent: 13 March 2019 11:56 Subject: Re: [PATCH linux-next v2 1/2] ASoC: rsnd: src: Avoid a potential deadlock Hi Geert On 2019/03/12 18:15, Geert Uytterhoeven wrote: Hi Jiada, Fabrizio, On Thu, Mar 7

Re: [PATCH v1 01/63] Input: introduce input_mt_report_slot_inactive

2019-08-21 Thread Jiada Wang
Hi Dmitry On 2019/08/17 2:12, Dmitry Torokhov wrote: Hi Jiada, On Fri, Aug 16, 2019 at 05:28:50PM +0900, Jiada Wang wrote: 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

Re: [PATCH v1 03/63] Input: atmel_mxt_ts - only read messages in mxt_acquire_irq() when necessary

2019-08-21 Thread Jiada Wang
Hi Dmitry On 2019/08/17 2:16, Dmitry Torokhov wrote: On Fri, Aug 16, 2019 at 05:28:52PM +0900, Jiada Wang wrote: From: Nick Dyer The workaround of reading all messages until an invalid is received is a way of forcing the CHG line high, which means that when using edge-triggered interrupts

Re: [PATCH v1 03/63] Input: atmel_mxt_ts - only read messages in mxt_acquire_irq() when necessary

2019-08-21 Thread Jiada Wang
Hi On 2019/08/22 2:54, Dmitry Torokhov wrote: On Wed, Aug 21, 2019 at 10:26:31PM +0900, Jiada Wang wrote: Hi Dmitry On 2019/08/17 2:16, Dmitry Torokhov wrote: On Fri, Aug 16, 2019 at 05:28:52PM +0900, Jiada Wang wrote: From: Nick Dyer The workaround of reading all messages until an

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

2019-08-21 Thread Jiada Wang
Hi Dmitry On 2019/08/17 2:18, Dmitry Torokhov wrote: On Fri, Aug 16, 2019 at 05:28:53PM +0900, 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. Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for

Re: [PATCH v1 06/63] Input: atmel_mxt_ts - output status from T42 Touch Suppression

2019-08-21 Thread Jiada Wang
Hi On 2019/08/17 2:34, Dmitry Torokhov wrote: On Fri, Aug 16, 2019 at 05:30:33PM +0900, Jiada Wang wrote: 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

Re: [PATCH v1 41/63] Input: touchscreen: Atmel: Enable IRQ_DISABLE_UNLAZY flag for interrupt

2019-08-21 Thread Jiada Wang
Hi Dmitry On 2019/08/17 2:26, Dmitry Torokhov wrote: On Fri, Aug 16, 2019 at 05:35:36PM +0900, Jiada Wang wrote: From: Bhuvanesh Surachari The de-/serializer driver has defined only irq_mask "ds90ub927_irq_mask" and irq_unmask "ds90ub927_irq_unmask" callback functions

Re: [PATCH v1 39/63] Input: touchscreen: Atmel: Add device tree support for T15 key array objects

2019-08-22 Thread Jiada Wang
Hi On 2019/08/17 2:25, Dmitry Torokhov wrote: On Fri, Aug 16, 2019 at 05:35:01PM +0900, Jiada Wang wrote: From: Daniel Gong This should be with the code adding T15 handling. will squash this patch into T15 handling one in v2 patchset Thanks, Jiada Signed-off-by: Daniel Gong Signed-off

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

2019-09-03 Thread Jiada Wang
Hi Daniel On 2019/08/30 0:31, Daniel Thompson wrote: On Tue, Aug 27, 2019 at 03:29:23PM +0900, Jiada Wang wrote: From: Nick Dyer Add a debug switch which causes all messages from the touch controller to be dumped to the dmesg log with a set prefix "MXT MSG:". This is used by Atmel

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

2019-09-03 Thread Jiada Wang
Hi Daniel On 2019/08/30 0:24, Daniel Thompson wrote: On Tue, Aug 27, 2019 at 03:27:19PM +0900, Jiada Wang wrote: From: Karl Tsou This description is a little brief. Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit cb98986f8342107bf4a536aed4160b20839e97c1

[PATCH v1 04/63] Input: atmel_mxt_ts - split large i2c transfers into blocks

2019-08-16 Thread Jiada Wang
commit 960fe000b1d3 ("Input: atmel_mxt_ts - fix the firmware update").] Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 27 +--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git

[PATCH v1 01/63] Input: introduce input_mt_report_slot_inactive

2019-08-16 Thread Jiada Wang
, also some other related changes. Signed-off-by: Jiada Wang --- drivers/hid/hid-alps.c | 3 +-- drivers/hid/hid-asus.c | 3 +-- drivers/hid/hid-elan.c | 3 +-- drivers/hid/hid-logitech-hidpp.c| 5 ++--- drivers/hid/hid

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

2019-08-16 Thread Jiada Wang
quot;).] Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 49 ++-- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c ind

[PATCH v1 00/63] atmel_mxt_ts misc

2019-08-16 Thread Jiada Wang
put: Atmel: use T44 object to process T5 messages George G. Davis (1): input: atmel_mxt_ts: export GPIO reset line via sysfs Janus Cheng (1): Input: atmel_mxt_ts - check data->input_dev is not null in mxt_input_sync() Jiada Wang (3): Input: introduce input_mt_report_slot_inactive I

[PATCH v1 02/63] Input: atmel_mxt_ts - rework sysfs init/remove

2019-08-16 Thread Jiada Wang
leaks in both the mxt_initialize() and mxt_probe() error return cases.] Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 71 +++- 1 file changed, 57 insertions(+), 14 deletions(-) diff --git a/drivers/input

[PATCH v1 22/63] Input: atmel_mxt_ts - combine bootloader version query with probe

2019-08-16 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 v1 21/63] Input: atmel_mxt_ts - refactor code to enter bootloader into separate func

2019-08-16 Thread Jiada Wang
pport").] Signed-off-by: George G. Davis 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_

[PATCH v1 28/63] Input: atmel_mxt_ts - implement I2C retries

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

2019-08-16 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 v1 20/63] Input: atmel_mxt_ts - refactor firmware flash to extract context into struct

2019-08-16 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 v1 24/63] Input: atmel_mxt_ts - check firmware format before entering bootloader

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

[PATCH v1 26/63] Input: atmel_mxt_ts - make bootloader interrupt driven

2019-08-16 Thread Jiada Wang
pport").] Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 120 --- 1 file changed, 61 insertions(+), 59 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_

[PATCH v1 27/63] Input: atmel_mxt_ts - delay enabling IRQ when not using regulators

2019-08-16 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 v1 25/63] Input: atmel_mxt_ts - rename bl_completion to chg_completion

2019-08-16 Thread Jiada Wang
pport").] Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 27 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_

[PATCH v1 29/63] Input: atmel_mxt_ts - orientation is not present in hover

2019-08-16 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 v1 49/63] Input: Atmel: Improve error handling in mxt_initialize_input_device()

2019-08-16 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 v1 46/63] Input: Atmel: improve error handling in mxt_initialize()

2019-08-16 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 | 33 +--- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/drivers/input/touchscreen

[PATCH v1 45/63] Input: Atmel: improve error handling in mxt_start()

2019-08-16 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 ed5b98c067e8..232262736029 100644 --- a/driv

[PATCH v1 47/63] Input: Atmel: improve error handling in mxt_update_cfg()

2019-08-16 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 v1 48/63] input: atmel_mxt_ts: move bootloader probe from mxt_initialize()

2019-08-16 Thread Jiada Wang
function longer and unreadable. mxt_bootloader_status() moves bootloader mode verification code from mxt_initialize() to make it cleaner. Signed-off-by: Deepak Das Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 45

[PATCH v1 34/63] Input: atmel_mxt_ts - Change call-points of mxt_free_* functions

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

[PATCH v1 52/63] Input: Atmel: use T44 object to process T5 messages

2019-08-16 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 v1 31/63] Input: atmel_mxt_ts - add memory access interface via sysfs

2019-08-16 Thread Jiada Wang
nd to view diagnostic data, while the device is running. Signed-off-by: Nick Dyer Acked-by: Benson Leung (cherry picked from ndyer/linux/for-upstream commit 80731e95c888d09b663ad9eeaf4163939bfe17f8) Signed-off-by: George G. Davis [jiada: Fix compilation warnings] Signed-off-by: Jiada Wang --

[PATCH v1 54/63] Input: atmel_mxt_ts: Avoid race condition in freeing of input device

2019-08-16 Thread Jiada Wang
egister_device() for a second time overall so avoiding the crash. The lock is released and the local pointer is safely used by input_unregister_device() so this function only runs a single time overall. Signed-off-by: Bhuvanesh Surachari Signed-off-by: Sanjeev Chugh Signed-off-by: George G. Davis

[PATCH v1 33/63] Input: atmel_mxt_ts - eliminate data->raw_info_block

2019-08-16 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 v1 53/63] Input: atmel_mxt_ts: use gpiod_set_value_cansleep for reset pin

2019-08-16 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 v1 32/63] Input: atmel_mxt_ts - implement improved debug message interface

2019-08-16 Thread Jiada Wang
now is not called from mxt_free_object_table() avoiding multiple double deallocations. Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 189 ++- 1 file changed, 187 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mx

[PATCH v1 56/63] Input: atmel_mxt_ts: Use complete when in_bootloader true

2019-08-16 Thread Jiada Wang
able() now needs to be supported by the data->chg_completion solution. Signed-off-by: Dean Jenkins Signed-off-by: Sanjeev Chugh Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH v1 55/63] Input: atmel_mxt_ts: Use msecs_to_jiffies() instead of HZ

2019-08-16 Thread Jiada Wang
From: Dean Jenkins Replace HZ / 10 with msecs_to_jiffies(100) in the schedule_delayed_work() calls in mxt_fw_work() and mxt_check_bootloader() because it is cleaner. Signed-off-by: Dean Jenkins Signed-off-by: Sanjeev Chugh Signed-off-by: George G. Davis Signed-off-by: Jiada Wang

[PATCH v1 51/63] input: Atmel: limit the max bytes transferred while reading T5 messages

2019-08-16 Thread Jiada Wang
-by: Sanjeev Chugh Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 73 ++-- 1 file changed, 44 insertions(+), 29 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atm

[PATCH v1 05/63] Input: atmel_mxt_ts - output status from T48 Noise Supression

2019-08-16 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 v1 09/63] Input: atmel_mxt_ts - handle reports from T47 Stylus object

2019-08-16 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 v2 42/63] Input: atmel_mxt_ts: Limit the max bytes transferred in an i2c transaction

2019-08-16 Thread Jiada Wang
t can read/transferred in an i2c transcation 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 | 26 +-- 2 files changed, 27 insert

[PATCH v1 07/63] Input: atmel_mxt_ts - implement T9 vector/orientation support

2019-08-16 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 9226ec528adf..c619ac9f3108 100644 --- a/drivers/input/touchscreen

[PATCH v1 59/63] Input: atmel_mxt_ts: Prevent crash due to freeing of input device

2019-08-16 Thread Jiada Wang
From: Bhuvanesh Surachari Move sysfs creation after intializing the input device to prevent crash due to freeing of input device by function via sysfs. Signed-off-by: Bhuvanesh Surachari Signed-off-by: Sanjeev Chugh Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input

[PATCH v1 44/63] Input: atmel_mxt_ts: return error from mxt_process_messages_until_invalid()

2019-08-16 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 v1 12/63] Input: atmel_mxt_ts - release touch state during suspend

2019-08-16 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 v1 63/63] Input: atmel_mxt_ts - Fix compilation warning

2019-08-16 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 v1 08/63] Input: atmel_mxt_ts - implement T15 Key Array support

2019-08-16 Thread Jiada Wang
jiada: Fix compilation warning] Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 56 1 file changed, 56 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index c619ac9f3108..99b87042dfe5 100644 ---

[PATCH v1 43/63] Input: atmel_mxt_ts: update stale use_retrigen_workaround flag

2019-08-16 Thread Jiada Wang
: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index e315ad3a8d2a..b3d40390abb6 100644 --- a/drivers/input

[PATCH v1 14/63] Input: atmel_mxt_ts - report failures in suspend/resume

2019-08-16 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 v1 39/63] Input: touchscreen: Atmel: Add device tree support for T15 key array objects

2019-08-16 Thread Jiada Wang
From: Daniel Gong Signed-off-by: Daniel Gong Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 29 1 file changed, 29 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input

[PATCH v1 62/63] Input: atmel_mxt_ts: Implement synchronization during various operation

2019-08-16 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 v1 61/63] input: atmel_mxt_ts: Add NULL check for sysfs attribute debug_msg_attr

2019-08-16 Thread Jiada Wang
sg_remove() for data->debug_msg_attr being NULL. Signed-off-by: Balasubramani Vivekanandan Signed-off-by: Mark Craske Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscr

[PATCH v1 06/63] Input: atmel_mxt_ts - output status from T42 Touch Suppression

2019-08-16 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 Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 25

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

2019-08-16 Thread Jiada Wang
From: Karl Tsou 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 | 40 1 file changed, 40

[PATCH v1 10/63] Input: atmel_mxt_ts - implement support for T107 active stylus

2019-08-16 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 v1 13/63] Input: atmel_mxt_ts - add regulator control support

2019-08-16 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 v1 60/63] input: atmel_mxt_ts: added sysfs interface to update atmel T38 data

2019-08-16 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 | 104 ++- 1 file changed

[PATCH v1 17/63] Input: atmel_mxt_ts - allow input name to be specified in platform data

2019-08-16 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 v1 38/63] Input: atmel_mxt_ts: Add support for run self-test routine.

2019-08-16 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 def9f94d73ef..be63002c2b31 100644

[PATCH v1 15/63] Input: atmel_mxt_ts - allow specification of firmware file name

2019-08-16 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 v1 40/63] input: atmel_mxt_ts: Add Missing Delay for reset handling of Atmel touch panel controller in detachable displays.

2019-08-16 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 v1 19/63] Input: atmel_mxt_ts - check data->input_dev is not null in mxt_input_sync()

2019-08-16 Thread Jiada Wang
picked from ndyer/linux/for-upstream commit c909ada856861f305653b127db3ea0fa60264331) [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-of

[PATCH v1 57/63] input: touchscreen: atmel_mxt_ts: Added sysfs entry for touchscreen status

2019-08-16 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 v1 18/63] Input: atmel_mxt_ts - add config checksum attribute to sysfs

2019-08-16 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 v1 41/63] Input: touchscreen: Atmel: Enable IRQ_DISABLE_UNLAZY flag for interrupt

2019-08-16 Thread Jiada Wang
__enable_irq (desc->depth--) (desc->irq_data.chip->irq_enable) Signed-off-by: Bhuvanesh Surachari Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/dri

[PATCH v1 16/63] Input: atmel_mxt_ts - handle cfg filename via pdata/sysfs

2019-08-16 Thread Jiada Wang
h fix from Vladimir Zapolskiy: + Input: atmel_mxt_ts - fix error paths in mxt_configure_objects() Fail in mxt_update_cfg() is critical, because the driver state machine is broken and it can not be safely used afterwards. Signed-off-by: Jiada Wang --- .../bindings/input/atmel,maxtouch.txt

[PATCH v1 35/63] Input: atmel_mxt_ts - rely on calculated_crc rather than file config_crc

2019-08-16 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 v1 30/63] Input: atmel_mxt_ts - implement debug output for messages

2019-08-16 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 v1 58/63] Input: atmel_mxt_ts: Remove sysfs attributes during driver detach

2019-08-16 Thread Jiada Wang
-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 234e3031ba42..431c2c54eab0 100644 --- a/drivers/input/touchscreen

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

2019-08-16 Thread Jiada Wang
nput/input/backlight_error1 Signed-off-by: Kautuk Consul Signed-off-by: Balasubramani Vivekanandan Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- .../bindings/input/atmel,maxtouch.txt | 15 +++ drivers/input/touchscreen/atmel_mxt_ts.c | 120 ++ 2 files ch

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

2019-08-16 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 v1 37/63] input: atmel_mxt_ts: export GPIO reset line via sysfs

2019-08-16 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 00/49] atmel_mxt_ts misc

2019-08-26 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 v2 02/49] Input: introduce input_mt_report_slot_inactive

2019-08-26 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 v2 03/49] Input: atmel_mxt_ts - rework sysfs init/remove

2019-08-26 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 v2 04/49] Input: atmel_mxt_ts - only read messages in mxt_acquire_irq() when necessary

2019-08-26 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 v2 01/49] Input: switch to use return value of input_mt_report_slot_state

2019-08-26 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 v2 08/49] Input: atmel_mxt_ts - implement T9 vector/orientation support

2019-08-26 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 v2 09/49] Input: atmel_mxt_ts - implement T15 Key Array support

2019-08-26 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 v2 12/49] Input: atmel_mxt_ts - add debug for T92 gesture and T93 touch seq msgs

2019-08-26 Thread Jiada Wang
From: Karl Tsou 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 | 40 1 file changed, 40

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

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 56405a5ea08eb34cfe83f3121867c9de0a5c48c1) Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 12

<    1   2   3   4   5   >