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

2019-02-21 Thread jiada
function of basic ones, so there is no need to use basic registers Thanks, Jiada Best regards --- Kuninori Morimoto

Re: [RFC] Staging: imx-drm: Do not use fractional part of divider

2013-06-14 Thread Jiada Wang
; + /* Strip fractional part of divider */ + div = ~0x0f; If div = 0x11, and the display is not forgiving enough, the pixel clock will probably not be accepted by it. thanks, jiada } } -#endif + return div

[PATCH v2] Bluetooth: BCSP fails to ACK re-transmitted frames from the peer

2014-07-15 Thread Jiada Wang
. Signed-off-by: Dean Jenkins djenk...@mvista.com Signed-off-by: Jiada Wang jiada_w...@mentor.com --- drivers/bluetooth/hci_bcsp.c | 94 1 file changed, 60 insertions(+), 34 deletions(-) diff --git a/drivers/bluetooth/hci_bcsp.c b/drivers/bluetooth

Re: [PATCH v2] Bluetooth: BCSP fails to ACK re-transmitted frames from the peer

2014-07-15 Thread Jiada Wang
Hi Marcel On 07/15/2014 04:42 AM, Marcel Holtmann wrote: Hi Jiada, Send an ACK frame with the current txack value in response to every received reliable frame unless a TX reliable frame is being sent. This modification allows re-transmitted frames from the remote peer to be acknowledged

[PATCH v3] Bluetooth: BCSP fails to ACK re-transmitted frames from the peer

2014-07-16 Thread Jiada Wang
. Signed-off-by: Dean Jenkins djenk...@mvista.com Signed-off-by: Jiada Wang jiada_w...@mentor.com --- drivers/bluetooth/hci_bcsp.c | 85 ++-- 1 file changed, 51 insertions(+), 34 deletions(-) diff --git a/drivers/bluetooth/hci_bcsp.c b/drivers/bluetooth

[PATCH v4] Bluetooth: BCSP fails to ACK re-transmitted frames from the peer

2014-07-16 Thread Jiada Wang
. Signed-off-by: Dean Jenkins djenk...@mvista.com Signed-off-by: Jiada Wang jiada_w...@mentor.com --- drivers/bluetooth/hci_bcsp.c | 85 ++-- 1 file changed, 51 insertions(+), 34 deletions(-) diff --git a/drivers/bluetooth/hci_bcsp.c b/drivers/bluetooth

[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 jiada_w...@mentor.com --- sound/soc/fsl/fsl_ssi.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git

[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

[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 jiada_w...@mentor.com --- sound/soc/fsl/fsl_ssi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

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

2014-11-30 Thread Jiada Wang
) 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 manually. Signed-off-by: Jiada

[PATCH v1 03/15] serial: imx: remove unneeded imx_transmit_buffer() from imx_start_tx()

2014-12-09 Thread Jiada Wang
From: Dirk Behme dirk.be...@de.bosch.com Use imx_start_tx() just to enable the TX interrupt. It's the job of the TX interrupt ISR to fill the transmit buffer, then. If the transmit buffer is empty, the TX interrupt should be executed as soon as the start_tx() enables the interrupt, so there is no

[PATCH v1 08/15] Revert serial: imx: always wake up the processes in the TX callback

2014-12-09 Thread Jiada Wang
a threshold. Signed-off-by: Jiada Wang jiada_w...@mentor.com --- drivers/tty/serial/imx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 3db6a5b..3d86851 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial

[PATCH v1 11/15] serial: imx: initialized DMA w/o HW flow enabled

2014-12-09 Thread Jiada Wang
From: Anton Bondarenko anton_bondare...@mentor.com DMA mode for UART can be used even w/o HW flow control with RTS/CTS. So it need to be initialized and enabled earlier. Signed-off-by: Anton Bondarenko anton_bondare...@mentor.com Signed-off-by: Jiada Wang jiada_w...@mentor.com --- drivers/tty

[PATCH v1 15/15] serial: imx: Support sw flow control in DMA mode

2014-12-09 Thread Jiada Wang
This patch adds Software flow control support in DMA mode. Signed-off-by: Jiada Wang jiada_w...@mentor.com --- drivers/tty/serial/imx.c | 30 -- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index

[PATCH v1 14/15] serial: imx: Fix issue in software flow control

2014-12-09 Thread Jiada Wang
After send out x_char in UART driver, x_char needs to be cleared by UART driver itself, otherwise data in TXFIFO can no longer be sent out. Also tx counter needs to be increased to keep track of correct number of transmitted data. Signed-off-by: Jiada Wang jiada_w...@mentor.com --- drivers/tty

[PATCH v1 13/15] serial: imx: Enable UCR4_OREN in startup interface

2014-12-09 Thread Jiada Wang
Other than enable Receiver Overrun Interrupt Enable (UCR4_OREN) in start_tx interface, UCR4_OREN should be enabled before enable of Receiver. Signed-off-by: Jiada Wang jiada_w...@mentor.com --- drivers/tty/serial/imx.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff

[PATCH v1 10/15] serial: imx: disable TDMAEN in imx_flush_buffer()

2014-12-09 Thread Jiada Wang
From: Dirk Behme dirk.be...@de.bosch.com Terminating the DMA, make sure the interrupt is disabled, too. This fixes random kernel Oops due to dma_tx_call() called for invalid transmissions. If we disable the TDMAEN, make sure it's enabled again if a TX DMA is started. Signed-off-by: Jiada Wang

[PATCH v1 12/15] serial: imx: start rx_dma once RXFIFO is not empty

2014-12-09 Thread Jiada Wang
From: Robin Gong b38...@freescale.com Start rx_dma once RXFIFO is not empty that can avoid dma request lost and causes data delay issue. Signed-off-by: Robin Gong b38...@freescale.com Signed-off-by: Fugang Duan b38...@freescale.com --- drivers/tty/serial/imx.c | 15 ++- 1 file

[PATCH v1 09/15] serial: imx: call imx_dma_tx() again in dma_tx_callback

2014-12-09 Thread Jiada Wang
and uart hasn't been stopped. Signed-off-by: Jiada Wang jiada_w...@mentor.com Signed-off-by: Dirk Behme dirk.be...@de.bosch.com --- drivers/tty/serial/imx.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 3d86851..c9e6891 100644

[PATCH v1 07/15] serial: imx: use dma_is_txing to synchronize dma_tx_callback and imx_dma_tx

2014-12-09 Thread Jiada Wang
From: Dirk Behme dirk.be...@de.bosch.com To synchronize between dma_tx_callback() and imx_dma_tx() use the same variable, dma_is_txing. This prevents any race between these two functions and ensures that a new DMA can start only after the first has been finished. Before the new DMA can be set

[PATCH v1 06/15] serial: imx: unmap scatter gather list in imx_flush_buffer

2014-12-09 Thread Jiada Wang
From: Dirk Behme dirk.be...@de.bosch.com First, reformat the code to exit immediately. This allows us to add more code in more readable format. In case the TX DMA was still running, remove and disable it's resources. Signed-off-by: Dirk Behme dirk.be...@de.bosch.com ---

[PATCH v1 05/15] serial: imx: unmap sg in case of dmaengine_prep_slave_sg() failure

2014-12-09 Thread Jiada Wang
From: Dirk Behme dirk.be...@de.bosch.com In case dmaengine_prep_slave_sg() fails, add the missing dma_unmap_sg(). Signed-off-by: Dirk Behme dirk.be...@de.bosch.com Signed-off-by: Anton Bondarenko anton_bondare...@mentor.com --- drivers/tty/serial/imx.c | 3 +++ 1 file changed, 3 insertions(+)

[PATCH v1 01/15] serial: imx: add CREAD flag support

2014-12-09 Thread Jiada Wang
Add CREAD flag hanlding in set_termios and UART DMA mode which ignores all received chars when CREAD flag cleared. Signed-off-by: Jiada Wang jiada_w...@mentor.com Signed-off-by: Anton Bondarenko anton_bondare...@mentor.com --- drivers/tty/serial/imx.c | 10 +- 1 file changed, 9

[PATCH v1 02/15] serial: imx: use locking to stop concurrent access of UCR1

2014-12-09 Thread Jiada Wang
Several places are accessing the UCR1 register without locking. This probably will cause a race issue when another thread is accessing the same register. Add locking to preventing concurrent access of the UCR1 register. Signed-off-by: Jiada Wang jiada_w...@mentor.com --- drivers/tty/serial/imx.c

[PATCH v1 00/15] serial: imx: misc fix and features

2014-12-09 Thread Jiada Wang
in imx_flush_buffer() Jiada Wang (7): serial: imx: add CREAD flag support serial: imx: use locking to stop concurrent access of UCR1 Revert serial: imx: always wake up the processes in the TX callback serial: imx: call imx_dma_tx() again in dma_tx_callback serial: imx: Enable UCR4_OREN in startup

[PATCH v1 04/15] serial: imx: TX DMA: clean up sg initialization

2014-12-09 Thread Jiada Wang
From: Dirk Behme dirk.be...@de.bosch.com Inverting the logic of the if statement for the sg initialization makes the if statement easier and better to read. No functional change. Signed-off-by: Dirk Behme dirk.be...@de.bosch.com --- drivers/tty/serial/imx.c | 8 1 file changed, 4

[PATCH v2] serial: imx: protect Soft Reset of port with lock

2015-04-13 Thread Jiada Wang
-by: Jiada Wang jiada_w...@mentor.com --- drivers/tty/serial/imx.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index c8cfa06..38717c7 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c

Re: [PATCH v2 4/8] spi: imx: add selection for iMX53 and iMX6 controller type

2015-10-25 Thread Jiada Wang
ot;, "fsl,imx51-ecspi"; -> "fsl,imx53-ecspi"; imx6qdl.dtsi compatible = "fsl,imx6q-ecspi", "fsl,imx51-ecspi"; -> compatible = "fsl,imx6q-ecspi", "fsl,imx53-ecspi"; imx6sl.dtsi compatible = "fsl,imx6sl-ecspi", &q

[PATCH] ASoC: wm8962: set ALC2 as non-volatile register

2015-10-22 Thread Jiada Wang
in ALC2 aren't used anywhere nor are useful to end user, so this patch removes ALC2 register from volatile register list to make ALC2 be possible to be accessed when cache_only flag is set. Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- sound/soc/codecs/wm8962.c | 3 +-- 1 file chan

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't

[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 <jiada_w...@mentor.com> --- drivers/t

[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 <jiada_w...@mentor.com> --- drivers/t

Re: [PATCH 1/2] ASoC: WM8962: mark cache_dirty flag after software reset in pm_resume

2015-10-07 Thread Jiada Wang
Hi On 10/06/2015 07:59 PM, Mark Brown wrote: On Tue, Oct 06, 2015 at 04:06:54PM +0900, Jiada Wang wrote: + /* All registers have been reset to default value without calling +* to regmap interface, even if reset fails, some registers +* maybe in intermediate status, so we

Re: [PATCH 2/2] ASoC: Codec: wm8962: declare ALC Coefficients as 4 separate registers

2015-10-07 Thread Jiada Wang
Hi On 10/06/2015 08:01 PM, Mark Brown wrote: On Tue, Oct 06, 2015 at 04:06:55PM +0900, Jiada Wang wrote: As ALC2 register is volatile, declare it as one of ALC Coefficients register together with other non-volatile registers will cause issue, in case wm8962 has enter suspend mode

[PATCH v2 0/2] *** wm8962 regmap related fix ***

2015-10-19 Thread Jiada Wang
regulator is set to 'regulator-always-on' mode, then after wm8962 is resumed from suspend, wm8962 codec is reset, but cache_dirty flag isn't set, this cause difference between actual wm8962 HW and regmap cache. Changeset: -- v1 -> v2 * removed comment before regcache_mark_dirty Ji

[PATCH 2/2] ASoC: Codec: wm8962: declare ALC Coefficients as 4 separate registers

2015-10-19 Thread Jiada Wang
which contains ALC1 ~ ALC3 and Noise Gate, this patch declares 4 separate registers, so that regmap can handle these registers differently based on their classification. Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- sound/soc/codecs/wm8962.c | 5 - 1 file changed, 4 insertions

[PATCH 1/2] ASoC: WM8962: mark cache_dirty flag after software reset in pm_resume

2015-10-19 Thread Jiada Wang
By doing software reset of wm8962 in pm_resume, all registers which have already been set will be reset to default value without regmap interface be involved, thus driver need to mark cache_dirty flag, to let regcache can be updated by regcache_sync(). Signed-off-by: Jiada Wang <jiad

Re: [PATCH] usb: chipidea: udc: clear vbus_active flag in udc_stop

2015-10-20 Thread Jiada Wang
Hi On 10/20/2015 03:01 PM, Peter Chen wrote: On Tue, Oct 20, 2015 at 11:29:18AM +0900, Jiada Wang wrote: Currently in udc_stop, if vbus_active flag is true, all USB activities will be stopped, but vbus_active flag is still left to be true, this causes issue, when afterwards driver tries

[PATCH] usb: chipidea: udc: clear vbus_active flag in udc_stop

2015-10-19 Thread Jiada Wang
. This patch clears vbus_active flag in udc_stop callback. Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- drivers/usb/chipidea/udc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 8223fe7..b9ac228 100644 --- a/drive

Re: [PATCH] usb: chipidea: udc: clear vbus_active flag in udc_stop

2015-10-20 Thread Jiada Wang
Hi On 10/20/2015 03:28 PM, Peter Chen wrote: On Tue, Oct 20, 2015 at 03:09:02PM +0900, Jiada Wang wrote: Hi On 10/20/2015 03:01 PM, Peter Chen wrote: On Tue, Oct 20, 2015 at 11:29:18AM +0900, Jiada Wang wrote: Currently in udc_stop, if vbus_active flag is true, all USB activities

[PATCH 1/2] ASoC: WM8962: mark cache_dirty flag after software reset in pm_resume

2015-10-06 Thread Jiada Wang
By doing software reset of wm8962 in pm_resume, all registers which have already been set will be reset to default value without regmap interface be involved, thus driver need to mark cache_dirty flag, to let regcache can be updated by regcache_sync(). Signed-off-by: Jiada Wang <jiad

[PATCH 0/2] *** wm8962 regmap related fix ***

2015-10-06 Thread Jiada Wang
regulator is set to 'regulator-always-on' mode, then after wm8962 is resumed from suspend, wm8962 codec is reset, but cache_dirty flag isn't set, this cause difference between actual wm8962 HW and regmap cache. Jiada Wang (2): ASoC: WM8962: mark cache_dirty flag after software reset in pm_resume

[PATCH 2/2] ASoC: Codec: wm8962: declare ALC Coefficients as 4 separate registers

2015-10-06 Thread Jiada Wang
which contains ALC1 ~ ALC3 and Noise Gate, this patch declares 4 separate registers, so that regmap can handle these registers differently based on their classification. Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- sound/soc/codecs/wm8962.c | 5 - 1 file changed, 4 insertions

[PATCH] ASoC: Codec: wm8962: balance pm_runtime_enable

2015-09-29 Thread Jiada Wang
callback and error path, to balance pm_runtime_enable. Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- 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

[PATCH 08/10] dma: imx-sdma: abort updating channel when it has been terminated

2016-05-16 Thread Jiada Wang
of channel status in sdma_handle_channel_loop(). Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- drivers/dma/imx-sdma.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 0b23407..bc867e5

[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 <jiada_w...@mentor.com> --- drivers/dma/imx-

[PATCH 10/10] dma: imx-sdma: clear channel0 interrupt bit in irq routine

2016-05-16 Thread Jiada Wang
timeouts, it won't cause irq storm, also adds lock to prevent irq routine to clear this bit when sdma_run_channel0() is busy checking it. Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- drivers/dma/imx-sdma.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drive

[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 07/10] dma: imx-sdma: Add synchronization support

2016-05-16 Thread Jiada Wang
for all currently running complete callbacks to finish. Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- 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 040cbf2..0b23407 100644 --- a/drivers/d

[PATCH 10/10] dma: imx-sdma: clear channel0 interrupt bit in irq routine

2016-05-16 Thread Jiada Wang
timeouts, it won't cause irq storm, also adds lock to prevent irq routine to clear this bit when sdma_run_channel0() is busy checking it. Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- drivers/dma/imx-sdma.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drive

[PATCH 07/10] dma: imx-sdma: Add synchronization support

2016-05-16 Thread Jiada Wang
for all currently running complete callbacks to finish. Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- 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 040cbf2..0b23407 100644 --- a/drivers/d

[PATCH 08/10] dma: imx-sdma: abort updating channel when it has been terminated

2016-05-16 Thread Jiada Wang
of channel status in sdma_handle_channel_loop(). Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- drivers/dma/imx-sdma.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 0b23407..bc867e5

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

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

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

2016-05-16 Thread Jiada Wang
-by: Jiada Wang <jiada_w...@mentor.com> --- 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 +

[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 <jiada_w...@mentor.com> --- 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

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

2016-05-16 Thread Jiada Wang
, 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 <jiada_w...@mentor.com> --- drivers/dma/imx-sdma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/imx-sd

[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 <jiada_w...@mentor.com> --- 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

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

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

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

2016-05-16 Thread Jiada Wang
of BD back to tasklet. Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- 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

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

2016-05-16 Thread Jiada Wang
-by: Jiada Wang <jiada_w...@mentor.com> --- 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 +

[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 <jiada_w...@mentor.com> --- drivers/dma/imx-

[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 <jiada_w...@mentor.com> --- 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

[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
of BD back to tasklet. Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- 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

[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 <jiada_w...@mentor.com> --- 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

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

2016-05-16 Thread Jiada Wang
, 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 <jiada_w...@mentor.com> --- drivers/dma/imx-sdma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/imx-sd

[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 <jiada_w...@mentor.com> --- 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

[PATCH 08/10] dma: imx-sdma: abort updating channel when it has been terminated

2016-05-16 Thread Jiada Wang
of channel status in sdma_handle_channel_loop(). Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- drivers/dma/imx-sdma.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 0b23407..bc867e5

[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 <jiada_w...@mentor.com> --- 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

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

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

[PATCH 10/10] dma: imx-sdma: clear channel0 interrupt bit in irq routine

2016-05-16 Thread Jiada Wang
timeouts, it won't cause irq storm, also adds lock to prevent irq routine to clear this bit when sdma_run_channel0() is busy checking it. Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- drivers/dma/imx-sdma.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drive

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

2016-05-16 Thread Jiada Wang
of BD back to tasklet. Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- 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

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

2016-05-16 Thread Jiada Wang
, 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 <jiada_w...@mentor.com> --- drivers/dma/imx-sdma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/imx-sd

[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 07/10] dma: imx-sdma: Add synchronization support

2016-05-16 Thread Jiada Wang
for all currently running complete callbacks to finish. Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- 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 040cbf2..0b23407 100644 --- a/drivers/d

[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 <jiada_w...@mentor.com> --- drivers/dma/imx-

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

2016-05-16 Thread Jiada Wang
-by: Jiada Wang <jiada_w...@mentor.com> --- 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 +

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

2016-05-25 Thread Jiada Wang
Hello On 05/17/2016 07:04 PM, Vinod Koul wrote: On Tue, May 17, 2016 at 12:47:46PM +0900, 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 lock to prevent

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

2016-07-13 Thread Jiada Wang
Hello Michael On 07/13/2016 07:29 AM, Michael Turquette wrote: Quoting jiada_w...@mentor.com (2016-07-10 22:33:28) From: Jiada Wang <jiada_w...@mentor.com> Previously CLK_SET_RATE_GATE flag is only checked in clk_set_rate() which only ensures the clock being called by clk_set_rate()

[PATCH 2/2] spi: imx: dynamic burst length adjust for DMA mode

2017-02-07 Thread Jiada Wang
transfer. Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- drivers/spi/spi-imx.c | 154 ++ 1 file changed, 130 insertions(+), 24 deletions(-) diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index 04b4ea8..68ff781 100644 --- a/d

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

2017-02-07 Thread Jiada Wang
length as possible to reduce the gaps in transfer for PIO mode. Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- drivers/spi/spi-imx.c | 151 +++--- 1 file changed, 143 insertions(+), 8 deletions(-) diff --git a/drivers/spi/spi-imx.c b/drivers/s

[PATCH linux-next v1 0/2] improve imx spi performance

2017-02-07 Thread Jiada Wang
to reduce number of gaps in both PIO & DMA transfers. * This patch set is against linux-next tree Jiada Wang (2): spi: imx: dynamic burst length adjust for PIO mode spi: imx: dynamic burst length adjust for DMA mode drivers/spi/spi-imx.c | 293 +

Re: [PATCH 1/1] dma: imx-sdma: add 1ms delay to ensure SDMA channel is stopped

2017-02-12 Thread Jiada Wang
Hello Vinod On 02/13/2017 11:05 AM, Vinod Koul wrote: On Fri, Feb 10, 2017 at 06:46:45AM -0800, jiada_w...@mentor.com wrote: From: Jiada Wang <jiada_w...@mentor.com> sdma_disable_channel() cannot ensure dma is stopped to access module's FIFOs. Maybe SDMA core is running and accessing B

Re: [PATCH 1/1] dma: imx-sdma: add 1ms delay to ensure SDMA channel is stopped

2017-03-01 Thread Jiada Wang
Hello Vinod On 02/13/2017 07:22 PM, Vinod Koul wrote: On Mon, Feb 13, 2017 at 03:30:19PM +0900, Jiada Wang wrote: +static int sdma_disable_channel_with_delay(struct dma_chan *chan) +{ + sdma_disable_channel(chan); + mdelay(1); what is the gaurantee that 1ms is fine? Shouldn't you

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

2017-02-27 Thread Jiada Wang
this issue by use SRCARCH instead of ARCH in perf. Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- tools/perf/Makefile.config | 38 +++--- tools/perf/Makefile.perf | 2 +- tools/perf/arch/Build | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-)

[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: move check

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 <jiada_w...@mentor.com> 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 rat

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

2016-08-23 Thread Jiada Wang
if their rate will be changed after clk_set_rate(). Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- 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

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: [PATCH v1 00/10] *** imx-sdma: misc fix ***

2016-10-12 Thread Jiada Wang
Hello Are there any comments for 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 lock to prevent

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

[PATCH 1/3 v1] ALSA: usb-audio: more tolerant packetsize

2016-11-30 Thread Jiada Wang
dition and dropping of packets. A better solution is so assume the jitter to be the nominal packetsize: -one nearly empty packet followed by a almost double sized one. Signed-off-by: Andreas Pape <ap...@de.adit-jv.com> Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- sound/usb/endpoint.

[PATCH 0/3 v1] usb-misc fix

2016-11-30 Thread Jiada Wang
This patch set contains the following patches Andreas Pape (1): ALSA: usb-audio: more tolerant packetsize Daniel Girnus (1): ALSA: usb-audio: avoid setting of sample rate multiple times on bus Mark Craske (1): ALSA: usb-audio: fix race in snd_usb_endpoint_stop sound/usb/endpoint.c | 24

[PATCH 1/1] ALSA: SOC: DMA: increment buffer pointer atomically

2016-11-30 Thread Jiada Wang
m> Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- sound/core/pcm_dmaengine.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sound/core/pcm_dmaengine.c b/sound/core/pcm_dmaengine.c index 8eb58c7..6f6da11 100644 --- a/sound/core/pcm_dmaengine.

[PATCH 3/3 v3] ALSA: usb-audio: fix race in snd_usb_endpoint_stop

2016-11-30 Thread Jiada Wang
e against retire, as there pointers may be freed in addition. For example, while in retire_capture_urb() runtime->dma_area might be freed/nulled. Signed-off-by: Mark Craske <mark_cra...@mentor.com> Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- sound/usb/endpoint.c | 20 +++

[PATCH 2/3 v2] ALSA: usb-audio: avoid setting of sample rate multiple times on bus

2016-11-30 Thread Jiada Wang
e rate will be configured several times over USB protocol. Signed-off-by: Jens Lorenz <jlor...@de.adit-jv.com> Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- sound/usb/pcm.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/sound/usb/pcm.c b/sou

[PATCH v2 1/2] ALSA: usb-audio: more tolerant packetsize

2016-12-05 Thread Jiada Wang
e <ap...@de.adit-jv.com> Signed-off-by: Jiada Wang <jiada_w...@mentor.com> --- sound/usb/endpoint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c index c470251..a2931f4 100644 --- a/sound/usb/endpoint.c +++ b/sound/usb

[PATCH 2/2] ALSA: usb-audio: avoid setting of sample rate multiple times on bus

2016-12-05 Thread Jiada Wang
evices are not able to manage this and they will stop playback if the sample rate will be configured several times over USB protocol. V2: updated Changelog Signed-off-by: Daniel Girnus <dgir...@de.adit-jv.com> Signed-off-by: Jens Lorenz <jlor...@de.adit-jv.com> Signed-off-by: J

[PATCH 0/2 v2] usb-audio misc fix

2016-12-05 Thread Jiada Wang
This patch set contains the following patches Andreas Pape (1): ALSA: usb-audio: more tolerant packetsize Daniel Girnus (1): ALSA: usb-audio: avoid setting of sample rate multiple times on bus sound/usb/endpoint.c | 4 ++-- sound/usb/pcm.c | 21 +++-- 2 files changed,

Re: [PATCH 3/3 v3] ALSA: usb-audio: fix race in snd_usb_endpoint_stop

2016-12-05 Thread Jiada Wang
Hi, Takashi On 11/30/2016 01:00 AM, Takashi Iwai wrote: On Wed, 30 Nov 2016 08:59:23 +0100, Jiada Wang wrote: From: Mark Craske<mark_cra...@mentor.com> Kernel crash seen once: Unable to handle kernel NULL pointer dereference at virtual address 0008 pgd = a1d7c000 [0008] *pgd=31

  1   2   3   4   5   6   7   >