function of basic ones,
so there is no need to use basic registers
Thanks,
Jiada
Best regards
---
Kuninori Morimoto
;
+ /* 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
.
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
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
.
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
.
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
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
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
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
) 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
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
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
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
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
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
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
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
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
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
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
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
---
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(+)
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
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
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-
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
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
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
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
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
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
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
-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 +
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
, 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
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
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
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
-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 +
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-
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
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
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
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
, 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
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
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
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
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
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
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
, 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
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
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
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-
-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 +
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
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()
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
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
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 +
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
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
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(-)
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
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
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
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
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
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
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.
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
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.
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 +++
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
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
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
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,
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 - 100 of 681 matches
Mail list logo