[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 32/56] Input: atmel_mxt_ts - make bootloader interrupt driven

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

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

2020-05-07 Thread Jiada Wang
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..674763dddcd3 10

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: [PATCH v3 1/1] perf tools: fix perf build with ARCH=x86_64

2017-04-17 Thread Jiada Wang
On 04/10/2017 12:44 AM, Jiri Olsa wrote: On Sun, Apr 09, 2017 at 07:43:15PM -0700, Jiada Wang wrote: Hello Jiri On 04/09/2017 10:27 AM, Jiri Olsa wrote: On Tue, Apr 04, 2017 at 11:25:44PM -0700, jiada_w...@mentor.com wrote: From: Jiada Wang with commit: 0a943cb10ce78 (tools build: Add

Re: [PATCH RFC 0/5] *** SPI Slave mode support ***

2017-04-26 Thread Jiada Wang
Hello Geert and Mark On 04/25/2017 03:31 AM, Mark Brown wrote: On Mon, Apr 24, 2017 at 12:55:21PM +0200, Geert Uytterhoeven wrote: On Fri, Apr 14, 2017 at 7:39 AM, Jiada Wang wrote: Our use case is to use spidev as an interface to communicate with external SPI master devices. meanwhile the

Re: [PATCH v3 1/1] perf tools: fix perf build with ARCH=x86_64

2017-04-09 Thread Jiada Wang
Hello Jiri On 04/09/2017 10:27 AM, Jiri Olsa wrote: On Tue, Apr 04, 2017 at 11:25:44PM -0700, jiada_w...@mentor.com wrote: From: Jiada Wang with commit: 0a943cb10ce78 (tools build: Add HOSTARCH Makefile variable) the following build failure is seen when build with ARCH=x86_64 is that

Re: [PATCH RFC 0/5] *** SPI Slave mode support ***

2017-04-13 Thread Jiada Wang
Hello Geert On 04/13/2017 12:47 PM, Geert Uytterhoeven wrote: On Thu, Apr 13, 2017 at 2:59 PM, Mark Brown wrote: On Thu, Apr 13, 2017 at 05:13:59AM -0700, jiada_w...@mentor.com wrote: From: Jiada Wang v1: add Slave mode support in SPI core spidev create slave device when SPI

Re: [PATCH RFC 0/5] *** SPI Slave mode support ***

2017-04-24 Thread Jiada Wang
Hello Geert On 04/24/2017 03:55 AM, Geert Uytterhoeven wrote: Hi Jiada, On Fri, Apr 14, 2017 at 7:39 AM, Jiada Wang wrote: On 04/13/2017 12:47 PM, Geert Uytterhoeven wrote: On Thu, Apr 13, 2017 at 2:59 PM, Mark Brown wrote: On Thu, Apr 13, 2017 at 05:13:59AM -0700, jiada_w...@mentor.com

Re: [PATCH RFC 0/5] *** SPI Slave mode support ***

2017-04-25 Thread Jiada Wang
Hi Geert On 04/24/2017 06:10 AM, Geert Uytterhoeven wrote: Hi Jiada, On Mon, Apr 24, 2017 at 2:48 PM, Jiada Wang wrote: On 04/24/2017 03:55 AM, Geert Uytterhoeven wrote: On Fri, Apr 14, 2017 at 7:39 AM, Jiada Wang wrote: On 04/13/2017 12:47 PM, Geert Uytterhoeven wrote: On Thu, Apr 13

Re: [PATCH linux-next v4 2/4] spi: imx: add selection for iMX53 and iMX6 controller

2017-06-26 Thread Jiada Wang
Hello Mark and Sascha Could you please review my v4 patch set for i.MX SPI slave support Thanks, Jiada On 06/13/2017 07:29 AM, Rob Herring wrote: On Tue, Jun 13, 2017 at 12:28 AM, Jiada Wang wrote: Hello Rob On 06/13/2017 12:53 AM, Rob Herring wrote: On Thu, Jun 08, 2017 at 02:16:01PM

Re: linux-next: build failure after merge of the spi tree

2017-05-23 Thread Jiada Wang
Hi Mark since commit 8d4a6cad7adb ("spi: imx: dynamic burst length adjust for PIO mode ") has been reverted, then commit 1ce1c618e6b5 ("spi: imx: only allow dynamic burst in PIO mode") need to be reverted as well. I can submit another version of patch set, with all founded issues be addressed

Re: Applied "spi: imx: dynamic burst length adjust for PIO mode" to the spi tree

2017-06-30 Thread Jiada Wang
Hello Sascha On 06/30/2017 05:14 AM, Sascha Hauer wrote: Hi Mark, On Fri, Jun 30, 2017 at 01:00:22PM +0100, Mark Brown wrote: The patch spi: imx: dynamic burst length adjust for PIO mode has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.gi

[PATCH linux-next v5 1/1] spi: imx: Add support for SPI Slave mode

2017-07-17 Thread Jiada Wang
with maximum 2^12 bits. This errata affects i.MX53 and i.MX6 ECSPI controllers. Signed-off-by: Jiada Wang --- Changes in v5: * rebased to HEAD of linux-next tree Changes in v4: * rebased to head of linux-next to resolve conflict * optimized mx53_ecspi_rx_slave() Changes in v3: *

Re: [PATCH v1 1/1] ASoC: rsnd: ssi: Fix issue in dma data address assignment

2017-12-20 Thread Jiada Wang
onger configure dma, this causes issue, when their dma data address are different from the first instance. This patch by introduces two dma struct in rdai, each SSI instance in a dai link is assigned with two dma struct, to store dma configuration for playback and capture. Signed-off-by: Jiada Wang ---

Re: [PATCH v1 1/1] ASoC: rsnd: ssi: Fix issue in dma data address assignment

2017-12-21 Thread Jiada Wang
Hi Morimoto-san On 12/20/2017 11:39 PM, Kuninori Morimoto wrote: Hi Jiada diff --git a/arch/arm64/boot/dts/renesas/salvator-common.dtsi b/arch/arm64/boot/dts/renesas/salvator-common.dtsi index a298df7..16f3214 100644 --- a/arch/arm64/boot/dts/renesas/salvator-common.dtsi +++ b/arch/arm64/boot/

Re: [PATCH v1 1/1] ASoC: rsnd: ssi: Fix issue in dma data address assignment

2017-12-21 Thread Jiada Wang
Hi Morimoto-san On 12/21/2017 04:43 PM, Kuninori Morimoto wrote: Hi Jiada Thank you for your feedback I understand your situation We have enabled TDM Split and Ex-Split mode in our kernel, and SSI(U)'s dma address diffs based on the BUSIF it is using, so have a single dma data struct per rsnd

[PATCH linux-next v5 1/1] spi: imx: dynamic burst length adjust for PIO mode

2017-08-09 Thread Jiada Wang
length as possible to reduce the gaps in transfer for PIO mode. Signed-off-by: Jiada Wang --- Changes in v5: * Rebased on latest linux-next tree * corrected burst_length value in spi_imx_buf_tx_swap() * fixed compile error issue caused by incorrect code rebase in v4 Changes in v4: * Rebased to latest

[PATCH linux-next v6 1/1] spi: imx: Add support for SPI Slave mode

2017-09-04 Thread Jiada Wang
t exactly to the size of the transfer. This limit SPI transaction with maximum 2^12 bits. This errata affects i.MX53 and i.MX6 ECSPI controllers. Signed-off-by: Jiada Wang --- Changes in v6: * rebased to HEAD of linux-next tree * avoid to enable dynamic burst adjust when in slave mode. Cha

Re: [PATCH linux-next v3 1/1] spi: imx: dynamic burst length adjust for PIO mode

2017-06-01 Thread Jiada Wang
Hello Fabio On 05/29/2017 04:07 AM, Fabio Estevam wrote: Hi Jiada, On Fri, May 26, 2017 at 2:02 AM, wrote: From: Jiada Wang previously burst length (BURST_LENGTH) is always set to equal to bits_per_word, causes a 10us gap between each word in transfer, which significantly affects

Re: [PATCH linux-next v3 1/1] spi: imx: dynamic burst length adjust for PIO mode

2017-06-01 Thread Jiada Wang
Hi Sascha On 05/29/2017 02:50 AM, Sascha Hauer wrote: Hi, On Thu, May 25, 2017 at 10:02:42PM -0700, jiada_w...@mentor.com wrote: From: Jiada Wang previously burst length (BURST_LENGTH) is always set to equal to bits_per_word, causes a 10us gap between each word in transfer, which

Re: [PATCH linux-next v2 1/1] spi: imx: dynamic burst length adjust for PIO mode

2017-05-17 Thread Jiada Wang
wrote: From: Jiada Wang previously burst length (BURST_LENGTH) is always set to equal to bits_per_word, causes a 10us gap between each word in transfer, which significantly affects performance. This patch uses 32 bits transfer to simulate lower bits transfer, and adjusts burst length runt

[PATCH linux-next 1/1] spi: imx: only allow dynamic burst in PIO mode

2017-05-21 Thread Jiada Wang
: Jiada Wang Reported-and-tested-by: Fabio Estevam --- drivers/spi/spi-imx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index 19b30cf..2768e64 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c @@ -242,6 +242,7 @@ static bool

Re: [PATCH linux-next v4 4/4] spi: imx: Add support for SPI Slave mode

2017-06-07 Thread Jiada Wang
Hi Sascha On 06/07/2017 01:41 AM, Sascha Hauer wrote: On Mon, Jun 05, 2017 at 12:38:09PM +0900, Jiada Wang wrote: Previously i.MX SPI controller only works in Master mode. This patch adds support to i.MX51, i.MX53 and i.MX6 ECSPI controller to work also in Slave mode. Currently SPI Slave mode

Re: [PATCH linux-next v4 2/4] spi: imx: add selection for iMX53 and iMX6 controller

2017-06-12 Thread Jiada Wang
Hello Rob On 06/13/2017 12:53 AM, Rob Herring wrote: On Thu, Jun 08, 2017 at 02:16:01PM +0900, Jiada Wang wrote: ECSPI contorller for iMX53 and iMX6 has few hardware issues comparing to iMX51. The change add possibility to detect which controller is used to apply possible workaround and

[PATCH linux-next v4 1/1] spi: imx: dynamic burst length adjust for PIO mode

2017-06-13 Thread Jiada Wang
length as possible to reduce the gaps in transfer for PIO mode. Signed-off-by: Jiada Wang --- Changes in v4: * Rebased to latest linux-next tree * Added support to bits_per_word other than 8,16,32 as well * Renamed several variables * Added dynamic_burst to spi_imx_devtype_data * Removed change from

Re: [PATCH v4 1/1] perf tools: fix perf build with ARCH=x86_64

2017-06-13 Thread Jiada Wang
Hello On 04/10/2017 01:17 AM, Jiri Olsa wrote: On Sun, Apr 09, 2017 at 08:02:37PM -0700, jiada_w...@mentor.com wrote: From: Jiada Wang with commit: 0a943cb10ce78 (tools build: Add HOSTARCH Makefile variable) when build for ARCH=x86_64, ARCH=x86_64 is passed to perf instead of ARCH=x86, so

Re: [PATCH 1/2] spi: imx: dynamic burst length adjust for PIO mode

2017-05-01 Thread Jiada Wang
Hello Mark Sorry, somehow I missed your following comment On 02/14/2017 10:20 AM, Mark Brown wrote: On Wed, Feb 08, 2017 at 03:20:27PM +0900, Jiada Wang wrote: This looks basically fine, a couple of fairly minor things here: + for (i = 0; i< transfer->len

[PATCH 1/1] soc-pcm: check symmetry after hw_params

2017-09-19 Thread Jiada Wang
the active stream and the new stream tries to start. This patch moves soc_pcm_params_symmetry() after hw_params to resolve the above issue. Signed-off-by: Jiada Wang --- sound/soc/soc-pcm.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sound/soc/soc-pcm.c b/sound

[PATCH linux-next v4 2/4] spi: imx: add selection for iMX53 and iMX6 controller

2017-06-07 Thread Jiada Wang
ECSPI contorller for iMX53 and iMX6 has few hardware issues comparing to iMX51. The change add possibility to detect which controller is used to apply possible workaround and limitations. Signed-off-by: Jiada Wang --- .../devicetree/bindings/spi/fsl-imx-cspi.txt | 1 + drivers/spi/spi

[PATCH linux-next v4 4/4] spi: imx: Add support for SPI Slave mode

2017-06-07 Thread Jiada Wang
with maximum 2^12 bits. This errata affects i.MX53 and i.MX6 ECSPI controllers. Signed-off-by: Jiada Wang --- drivers/spi/spi-imx.c | 226 +++--- 1 file changed, 196 insertions(+), 30 deletions(-) diff --git a/drivers/spi/spi-imx.c b/drive

[PATCH linux-next v4 3/4] ARM: dts: imx: change compatibility for SPI controllers on imx53 later soc

2017-06-07 Thread Jiada Wang
ompatibile with 'fsl,imx53-ecspi'. Signed-off-by: Jiada Wang --- arch/arm/boot/dts/imx53.dtsi | 4 ++-- arch/arm/boot/dts/imx6q.dtsi | 2 +- arch/arm/boot/dts/imx6qdl.dtsi | 8 arch/arm/boot/dts/imx6sl.dtsi | 8 arch/arm/boot/dts/imx6sx.dtsi | 8 arch

[PATCH linux-next v4 1/4] spi: imx: introduce fifo_size and has_dmamode in spi_imx_devtype_data

2017-06-07 Thread Jiada Wang
Different ECSPI controller has different fifosize and DMA capability, instead of calling functions to identify these information by check devtype. add fifo_size and has_dmamode to spi_imx_devtype_data. so that these information can be directly accessed. Signed-off-by: Jiada Wang --- drivers/spi

[PATCH linux-next v4 0/4] i.MX ECSPI controller slave mode support

2017-06-07 Thread Jiada Wang
spi_imx_devtype_data Changes in v2: * re-workd i.MX ECSPI controller slave mode support based on Geert's work Jiada Wang (4): spi: imx: introduce fifo_size and has_dmamode in spi_imx_devtype_data spi: imx: add selection for iMX53 and iMX6 controller ARM: dts: imx: change compatibility fo

Re: [PATCH linux-next v3 1/1] spi: imx: dynamic burst length adjust for PIO mode

2017-06-08 Thread Jiada Wang
On 06/01/2017 10:38 PM, Sascha Hauer wrote: On Thu, Jun 01, 2017 at 04:58:47AM -0700, Jiada Wang wrote: Hi Sascha On 05/29/2017 02:50 AM, Sascha Hauer wrote: Hi, On Thu, May 25, 2017 at 10:02:42PM -0700, jiada_w...@mentor.com wrote: From: Jiada Wang previously burst length (BURST_LENGTH

Re: [PATCH v2 linux-next 3/3] spi: imx: Add support for SPI Slave mode

2017-06-02 Thread Jiada Wang
Hi Sascha On 05/31/2017 05:10 AM, Sascha Hauer wrote: > On Wed, May 31, 2017 at 02:19:58AM -0700, jiada_w...@mentor.com wrote: >> From: Jiada Wang >> >> Previously i.MX SPI controller only works in Master mode. >> This patch adds support to i.MX51, i.MX53 and i.MX6

[PATCH linux-next v3 0/4] i.MX ECSPI controller slave mode support

2017-06-04 Thread Jiada Wang
work Jiada Wang (4): spi: imx: introduce fifo_size and has_dmamode in spi_imx_devtype_data spi: imx: add selection for iMX53 and iMX6 controller ARM: dts: imx: change compatiblity for SPI controllers on imx53 later soc spi: imx: Add support for SPI Slave mode .../devicetree/bindings/sp

[PATCH linux-next v3 2/4] spi: imx: add selection for iMX53 and iMX6 controller

2017-06-04 Thread Jiada Wang
ECSPI contorller for iMX53 and iMX6 has few hardware issues comparing to iMX51. The change add possibility to detect which controller is used to apply possible workaround and limitations. Signed-off-by: Jiada Wang --- .../devicetree/bindings/spi/fsl-imx-cspi.txt | 1 + drivers/spi/spi

[PATCH linux-next v4 4/4] spi: imx: Add support for SPI Slave mode

2017-06-04 Thread Jiada Wang
with maximum 2^12 bits. This errata affects i.MX53 and i.MX6 ECSPI controllers. Signed-off-by: Jiada Wang --- drivers/spi/spi-imx.c | 228 +++--- 1 file changed, 198 insertions(+), 30 deletions(-) diff --git a/drivers/spi/spi-imx.c b/drive

[PATCH linux-next v3 1/4] spi: imx: introduce fifo_size and has_dmamode in spi_imx_devtype_data

2017-06-04 Thread Jiada Wang
Different ECSPI controller has different fifosize and DMA capability, instead of calling functions to identify these information by check devtype. add fifo_size and has_dmamode to spi_imx_devtype_data. so that these information can be directly accessed. Signed-off-by: Jiada Wang --- drivers/spi

[PATCH linux-next v3 3/4] ARM: dts: imx: change compatiblity for SPI controllers on imx53 later soc

2017-06-04 Thread Jiada Wang
ompatibile with 'fsl,imx53-ecspi'. Signed-off-by: Jiada Wang --- arch/arm/boot/dts/imx53.dtsi | 4 ++-- arch/arm/boot/dts/imx6q.dtsi | 2 +- arch/arm/boot/dts/imx6qdl.dtsi | 8 arch/arm/boot/dts/imx6sl.dtsi | 8 arch/arm/boot/dts/imx6sx.dtsi | 8 arch

[PATCH linux-next v2 1/1] ASoC: rsnd: ssiu: clear SSI_MODE for non TDM Extended modes

2017-11-27 Thread Jiada Wang
") Signed-off-by: Jiada Wang --- sound/soc/sh/rcar/ssiu.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/sh/rcar/ssiu.c b/sound/soc/sh/rcar/ssiu.c index 4d94875..6ff8a36 100644 --- a/sound/soc/sh/rcar/ssiu.c +++ b/sound/soc/sh/rcar/ssiu.c @@ -125,6 +125,

Re: [PATCH v1 1/2] ASoC: rsnd: ssi: fix race condition in rsnd_ssi_pointer_update

2017-12-07 Thread Jiada Wang
returned from .pointer callback. This patch increments buffer pointer atomically to avoid this issue. Signed-off-by: Jiada Wang Reviewed-by: Takashi Sakamoto --- You using playback with PIO mode ? Because this function is no longer used on DMA mode No, we are using rcar sound in DMA mode, our

Re: [PATCH v2 2/2] ASoC: rsnd: ssi: remove unnesessary period_pos

2017-12-07 Thread Jiada Wang
Hi Morimoto-san On 12/07/2017 01:58 AM, Kuninori Morimoto wrote: Hi Jiada Further more, if the passed 'byte' amount to rsnd_ssi_pointer_update() is more than byte_per_period. the calculation of next_period_byte isn't correct. Is it really happen ?? Basically, I have no objection about this p

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

2016-10-16 Thread Jiada Wang
Hello community Is there any comment regarding this patch set? Thanks, Jiada On 05/17/2016 12:48 PM, Jiada Wang wrote: 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

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

2016-10-17 Thread Jiada Wang
Hello Vinod On 10/17/2016 02:34 PM, Vinod Koul wrote: On Mon, Oct 17, 2016 at 01:51:26PM +0900, Jiada Wang wrote: Hello community Is there any comment regarding this patch set? I dont seem to have this, can you please rebase this and resend.. I found upstream already has similar fix

Re: [RFC PATCH v2] clk: move check of CLK_SET_RATE_GATE flag to clk_propagate_rate_change()

2016-08-23 Thread Jiada Wang
Hello Stephen On 08/11/2016 07:19 AM, Stephen Boyd wrote: On 07/10, jiada_w...@mentor.com wrote: From: Jiada Wang Previously CLK_SET_RATE_GATE flag is only checked in clk_set_rate() which only ensures the clock being called by clk_set_rate() won't change rate when it has been prepar

[PATCH v3] clk: move check of CLK_SET_RATE_GATE flag to clk_propagate_rate_change()

2016-08-23 Thread Jiada Wang
v3: - updated commit message - only check CLK_SET_RATE_GATE flag in case of 'PRE_RATE_CHANGE' event - continue propagate rate change, even when there is error in clk_propagate_rate_change() v2: - changed to return clk_core *core, instead of NULL Jiada Wang (1): clk: mov

[PATCH] clk: move check of CLK_SET_RATE_GATE flag to clk_propagate_rate_change()

2016-08-23 Thread Jiada Wang
be checked if their rate will be changed after clk_set_rate(). Signed-off-by: Jiada Wang --- drivers/clk/clk.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 820a939..021c740 100644 --- a/drivers/clk/clk.c +++ b/drivers

[tip:sched/core] sched/debug: Fix potential deadlock when writing to sched_features

2018-09-10 Thread tip-bot for Jiada Wang
Commit-ID: e73e81975f2447e6f556100cada64a18ec631cbb Gitweb: https://git.kernel.org/tip/e73e81975f2447e6f556100cada64a18ec631cbb Author: Jiada Wang AuthorDate: Tue, 31 Jul 2018 21:12:22 +0900 Committer: Ingo Molnar CommitDate: Mon, 10 Sep 2018 10:13:45 +0200 sched/debug: Fix potential

[tip:perf/urgent] perf tools: Fix build with ARCH=x86_64

2017-06-16 Thread tip-bot for Jiada Wang
Commit-ID: 7a759cd8e8272ee18922838ee711219c7c796a31 Gitweb: http://git.kernel.org/tip/7a759cd8e8272ee18922838ee711219c7c796a31 Author: Jiada Wang AuthorDate: Sun, 9 Apr 2017 20:02:37 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 14 Jun 2017 15:44:29 -0300 perf tools: Fix

<    1   2   3   4   5