[PATCH v2 6/8] dmaengine: mxs-dma: Let the core do the device node validation

2019-05-20 Thread Baolin Wang
Let the DMA engine core do the device node validation instead of drivers. Signed-off-by: Baolin Wang --- drivers/dma/mxs-dma.c |8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c index 22cc7f6..8ce5e79 100644 --- a/drivers

[PATCH v2 4/8] dmaengine: dma-jz4780: Let the core do the device node validation

2019-05-20 Thread Baolin Wang
Let the DMA engine core do the device node validation instead of drivers. Signed-off-by: Baolin Wang --- drivers/dma/dma-jz4780.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c index 9ce0a38..7e1d381 100644

[PATCH v2 2/8] soc: tegra: fuse: Use dma_request_channel instead of __dma_request_channel()

2019-05-20 Thread Baolin Wang
The __dma_request_channel() prototype has been changed to help to do device node validation, thus we can use dma_request_channel() instead of __dma_request_channel() to keep kernel bisectable. Signed-off-by: Baolin Wang --- drivers/soc/tegra/fuse/fuse-tegra20.c |2 +- 1 file changed, 1

[PATCH v2 3/8] dmaengine: imx-sdma: Let the core do the device node validation

2019-05-20 Thread Baolin Wang
Let the DMA engine core do the device node validation instead of drivers. Signed-off-by: Baolin Wang --- drivers/dma/imx-sdma.c|9 ++--- include/linux/platform_data/dma-imx.h |1 - 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/dma/imx-sdma.c

[PATCH v2 0/8] Add matching device node validation in DMA engine core

2019-05-20 Thread Baolin Wang
of __dma_request_channel() for the fuse-tegra20.c driver to keep bisectable. Baolin Wang (8): dmaengine: Add matching device node validation in __dma_request_channel() soc: tegra: fuse: Use dma_request_channel instead of __dma_request_channel() dmaengine: imx-sdma: Let the core do the device node

Re: [PATCH 1/8] dmaengine: Add matching device node validation in __dma_request_channel()

2019-05-20 Thread Baolin Wang
On Tue, 7 May 2019 at 16:37, Peter Ujfalusi wrote: > > Hi, > > On 07/05/2019 9.09, Baolin Wang wrote: > > When user try to request one DMA channel by __dma_request_channel(), it > > won't > > validate if it is the correct DMA device to request, that will l

[PATCH 7/9] dt-bindings: mmc: sprd: Add PHY DLL delay documentation

2019-05-20 Thread Baolin Wang
Introduce some PHY DLL delays properties to help to sample the PHY clock. Signed-off-by: Baolin Wang --- .../devicetree/bindings/mmc/sdhci-sprd.txt | 18 ++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/sdhci-sprd.txt b

[PATCH 2/9] dt-bindings: mmc: sprd: Add another optional clock documentation

2019-05-20 Thread Baolin Wang
For some Spreadtrum platforms like SC9860 platform, we should enable another gate clock '2x_enable' to make the SD host controller work well. Thus add documentation for this optional clock. Signed-off-by: Baolin Wang --- .../devicetree/bindings/mmc/sdhci-sprd.txt |1 + 1 file

[PATCH 1/9] mmc: sdhci-sprd: Check the enable clock's return value correctly

2019-05-20 Thread Baolin Wang
Missed to check the enable clock's return value, fix it. Signed-off-by: Baolin Wang --- drivers/mmc/host/sdhci-sprd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-sprd.c b/drivers/mmc/host/sdhci-sprd.c index 9a822e2..e741491 100644 --- a/drivers

[PATCH 0/9] Add SD host controller support for SC9860 platform

2019-05-20 Thread Baolin Wang
This patch set adds optional clock support, HS400 enhanced strobe mode support, PHY DLL configuration and other optimization to make the SD host controller can work well on the Spreadtrum SC9860 platform. Baolin Wang (9): mmc: sdhci-sprd: Check the enable clock's return value correctly dt

[PATCH 8/9] mmc: sdhci-sprd: Add PHY DLL delay configuration

2019-05-20 Thread Baolin Wang
Set the PHY DLL delay for each timing mode, which is used to sample the clock accurately and make the clock more stable. Signed-off-by: Baolin Wang --- drivers/mmc/host/sdhci-sprd.c | 51 + 1 file changed, 51 insertions(+) diff --git a/drivers/mmc/host

[PATCH 9/9] arm64: dts: sprd: Add Spreadtrum SD host controller support

2019-05-20 Thread Baolin Wang
Add one Spreadtrum SD host controller to support eMMC card for Spreadtrum SC9860 platform. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/whale2.dtsi | 35 ++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch

[PATCH 3/9] mmc: sdhci-sprd: Add optional gate clock support

2019-05-20 Thread Baolin Wang
For the Spreadtrum SC9860 platform, we should enable another gate clock '2x_enable' to make the SD host controller work well. Signed-off-by: Baolin Wang --- drivers/mmc/host/sdhci-sprd.c | 35 +-- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git

[PATCH 6/9] mmc: sdhci-sprd: Enable PHY DLL to make clock stable

2019-05-20 Thread Baolin Wang
For the Spreadtrum SD host controller, when we changed the clock to be more than 52M, we should enable the PHY DLL which is used to track the clock frequency to make the clock work more stable. Otherwise deviation may occur of the higher clock. Signed-off-by: Baolin Wang --- drivers/mmc/host

[PATCH 4/9] mmc: sdhci-sprd: Implement the get_max_timeout_count() interface

2019-05-20 Thread Baolin Wang
Implement the get_max_timeout_count() interface to set the Spredtrum SD host controller actual maximum timeout count. Signed-off-by: Baolin Wang --- drivers/mmc/host/sdhci-sprd.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/mmc/host/sdhci-sprd.c b/drivers/mmc/host/sdhci

[PATCH 5/9] mmc: sdhci-sprd: Add HS400 enhanced strobe mode

2019-05-20 Thread Baolin Wang
Add HS400 enhanced strobe mode support for Spreadtrum SD host controller. Signed-off-by: Baolin Wang --- drivers/mmc/host/sdhci-sprd.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/mmc/host/sdhci-sprd.c b/drivers/mmc/host/sdhci-sprd.c index

Re: [PATCH 2/8] soc: tegra: fuse: Change to the correct __dma_request_channel() prototype

2019-05-08 Thread Baolin Wang
On Wed, 8 May 2019 at 23:15, Dmitry Osipenko wrote: > > 07.05.2019 9:09, Baolin Wang пишет: > > Since we've introduced one device node parameter for > > __dma_request_channel(), > > thus change to the correct function prototype. > > > > Signed-off-by: Baolin

[PATCH 1/8] dmaengine: Add matching device node validation in __dma_request_channel()

2019-05-07 Thread Baolin Wang
validation in the DMA engine core, to remove all of device node validation in the drivers. Signed-off-by: Baolin Wang --- drivers/dma/dmaengine.c | 10 -- drivers/dma/of-dma.c |4 ++-- include/linux/dmaengine.h | 12 3 files changed, 18 insertions(+), 8 deletions

[PATCH 8/8] dmaengine: sh: usb-dmac: Let the core do the device node validation

2019-05-07 Thread Baolin Wang
Let the DMA engine core do the device node validation instead of drivers. Signed-off-by: Baolin Wang --- drivers/dma/sh/usb-dmac.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/dma/sh/usb-dmac.c b/drivers/dma/sh/usb-dmac.c index 59403f6..0afabf3 100644

[PATCH 6/8] dmaengine: mxs-dma: Let the core do the device node validation

2019-05-07 Thread Baolin Wang
Let the DMA engine core do the device node validation instead of drivers. Signed-off-by: Baolin Wang --- drivers/dma/mxs-dma.c |8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c index 22cc7f6..8ce5e79 100644 --- a/drivers

[PATCH 7/8] dmaengine: sh: rcar-dmac: Let the core do the device node validation

2019-05-07 Thread Baolin Wang
Let the DMA engine core do the device node validation instead of drivers. Signed-off-by: Baolin Wang --- drivers/dma/sh/rcar-dmac.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/sh/rcar-dmac.c b/drivers/dma/sh/rcar-dmac.c index 2b4f256..9474d5b 100644

[PATCH 5/8] dmaengine: mmp_tdma: Let the core do the device node validation

2019-05-07 Thread Baolin Wang
Let the DMA engine core do the device node validation instead of drivers. Signed-off-by: Baolin Wang --- drivers/dma/mmp_tdma.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c index 0c56faa0..e76858b 100644

[PATCH 4/8] dmaengine: dma-jz4780: Let the core do the device node validation

2019-05-07 Thread Baolin Wang
Let the DMA engine core do the device node validation instead of drivers. Signed-off-by: Baolin Wang --- drivers/dma/dma-jz4780.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c index 9ce0a38..7e1d381 100644

[PATCH 2/8] soc: tegra: fuse: Change to the correct __dma_request_channel() prototype

2019-05-07 Thread Baolin Wang
Since we've introduced one device node parameter for __dma_request_channel(), thus change to the correct function prototype. Signed-off-by: Baolin Wang --- drivers/soc/tegra/fuse/fuse-tegra20.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/tegra/fuse/fuse

[PATCH 3/8] dmaengine: imx-sdma: Let the core do the device node validation

2019-05-07 Thread Baolin Wang
Let the DMA engine core do the device node validation instead of drivers. Signed-off-by: Baolin Wang --- drivers/dma/imx-sdma.c|9 ++--- include/linux/platform_data/dma-imx.h |1 - 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/dma/imx-sdma.c

[PATCH 0/8] Add matching device node validation in DMA engine core

2019-05-07 Thread Baolin Wang
Hi, This patch set adds a device node validation in DMA engine core, that will help some drivers to remove the duplicate device node validation in each driver. Any comments are welcome. Thanks. Baolin Wang (8): dmaengine: Add matching device node validation in __dma_request_channel

Re: Applied "ASoC: sprd: Add reserved DMA memory support" to the asoc tree

2019-05-06 Thread Baolin Wang
On Mon, 6 May 2019 at 21:49, Mark Brown wrote: > > On Mon, May 06, 2019 at 03:37:39PM +0800, Baolin Wang wrote: > > > I did not find this patch in your sound git tree and the linux-next > > tree, so could you check if you missed this patch? Or did I miss > > anything?

Re: Applied "ASoC: sprd: Add reserved DMA memory support" to the asoc tree

2019-05-06 Thread Baolin Wang
you missed this patch? Or did I miss anything? Thanks a lot. > > Thanks, > Mark > > From 25a073bb9ceda91b8bf731b20ac01b68cc8877a9 Mon Sep 17 00:00:00 2001 > From: Baolin Wang > Date: Fri, 12 Apr 2019 14:40:17 +0800 > Subject: [PATCH] ASoC: sprd: Add reserved DMA memory supp

[PATCH v2 4/6] dmaengine: sprd: Fix block length overflow

2019-05-06 Thread Baolin Wang
length will not be a big value which is more than 0x. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 0f92e60..a01c232 100644

[PATCH v2 3/6] dmaengine: sprd: Fix the incorrect start for 2-stage destination channels

2019-05-06 Thread Baolin Wang
From: Eric Long The 2-stage destination channel will be triggered by source channel automatically, which means we should not trigger it by software request. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion

[PATCH v2 6/6] dmaengine: sprd: Add interrupt support for 2-stage transfer

2019-05-06 Thread Baolin Wang
For 2-stage transfer, some users like Audio still need transaction interrupt to notify when the 2-stage transfer is completed. Thus we should enable 2-stage transfer interrupt to support this feature. Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c | 22 +- 1 file

[PATCH v2 5/6] dmaengine: sprd: Fix the right place to configure 2-stage transfer

2019-05-06 Thread Baolin Wang
From: Eric Long Move the 2-stage configuration before configuring the link-list mode, since we will use some 2-stage configuration to fill the link-list configuration. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c | 12 ++-- 1 file changed, 6

[PATCH v2 0/6] Fix some bugs and add new feature for Spreadtrum DMA engine

2019-05-06 Thread Baolin Wang
Hi, This patch set fixes some DMA engine bugs and adds interrupt support for 2-stage transfer. Changes from v1: - Improve the commit message for patch 1. - Drop patch 4 from the v1 patch set, and I will create another patch set to move the fix to the core. Baolin Wang (3): dmaengine: sprd

[PATCH v2 2/6] dmaengine: sprd: Add validation of current descriptor in irq handler

2019-05-06 Thread Baolin Wang
When user terminates one DMA channel to free all its descriptors, but at the same time one transaction interrupt was triggered possibly, now we should not handle this interrupt by validating if the 'schan->cur_desc' was set as NULL to avoid crashing the kernel. Signed-off-by: Baolin W

[PATCH v2 1/6] dmaengine: sprd: Fix the possible crash when getting descriptor status

2019-05-06 Thread Baolin Wang
. Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 48431e2..e29342a 100644 --- a/drivers/dma/sprd-dma.c +++ b/drivers/dma/sprd-dma.c @@ -625,7 +625,7 @@ static enum d

Re: [PATCH] arm64: dts: sprd: Add clock properties for serial devices

2019-05-06 Thread Baolin Wang
Hi Olof, On Wed, 10 Apr 2019 at 15:23, Baolin Wang wrote: > > We've introduced power management logics for the Spreadtrum serial > controller by commit 062ec2774c8a ("serial: sprd: Add power management > for the Spreadtrum serial controller"), thus add related clock p

Re: [PATCH 4/7] dmaengine: sprd: Add device validation to support multiple controllers

2019-05-05 Thread Baolin Wang
Hi Vinod, On Thu, 2 May 2019 at 14:01, Vinod Koul wrote: > > On 30-04-19, 16:53, Baolin Wang wrote: > > Hi Vinod, > > > > On Tue, 30 Apr 2019 at 16:34, Baolin Wang wrote: > > > > > > On Tue, 30 Apr 2019 at 16:30, Vinod Koul wrote: > > &

Re: [PATCH 4/7] dmaengine: sprd: Add device validation to support multiple controllers

2019-04-30 Thread Baolin Wang
Hi Vinod, On Tue, 30 Apr 2019 at 16:34, Baolin Wang wrote: > > On Tue, 30 Apr 2019 at 16:30, Vinod Koul wrote: > > > > On 30-04-19, 13:30, Baolin Wang wrote: > > > On Mon, 29 Apr 2019 at 22:05, Vinod Koul wrote: > > > > > > > > On 29-04-19,

Re: [PATCH 4/7] dmaengine: sprd: Add device validation to support multiple controllers

2019-04-30 Thread Baolin Wang
On Tue, 30 Apr 2019 at 16:30, Vinod Koul wrote: > > On 30-04-19, 13:30, Baolin Wang wrote: > > On Mon, 29 Apr 2019 at 22:05, Vinod Koul wrote: > > > > > > On 29-04-19, 20:20, Baolin Wang wrote: > > > > On Mon, 29 Apr 2019 at 19:57, Vinod Koul wro

Re: [PATCH 7/7] dmaengine: sprd: Add interrupt support for 2-stage transfer

2019-04-29 Thread Baolin Wang
On Mon, 29 Apr 2019 at 22:10, Vinod Koul wrote: > > On 29-04-19, 20:11, Baolin Wang wrote: > > On Mon, 29 Apr 2019 at 20:01, Vinod Koul wrote: > > > On 15-04-19, 20:15, Baolin Wang wrote: > > > > > @@ -429,6 +433,9 @@ static int sprd_dma_set_2stage_config

Re: [PATCH 4/7] dmaengine: sprd: Add device validation to support multiple controllers

2019-04-29 Thread Baolin Wang
On Mon, 29 Apr 2019 at 22:05, Vinod Koul wrote: > > On 29-04-19, 20:20, Baolin Wang wrote: > > On Mon, 29 Apr 2019 at 19:57, Vinod Koul wrote: > > > > > > On 15-04-19, 20:14, Baolin Wang wrote: > > > > From: Eric Long > > > > > >

Re: [PATCH -next] ASoC: sprd: Fix to use list_for_each_entry_safe() when delete items

2019-04-29 Thread Baolin Wang
trum multi-channel data transfer > support") > Signed-off-by: Wei Yongjun Yes, thanks for your fixes. Reviewed-by: Baolin Wang > --- > sound/soc/sprd/sprd-mcdt.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/sound/soc/sprd/sprd-mcdt.c

Re: [PATCH -next] ASoC: sprd: Fix return value check in sprd_mcdt_probe()

2019-04-29 Thread Baolin Wang
preadtrum multi-channel data transfer > support") > Signed-off-by: Wei Yongjun Thanks for fixing my mistake. Reviewed-by: Baolin Wang > --- > sound/soc/sprd/sprd-mcdt.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/sound/soc/sprd

Re: [PATCH 4/7] dmaengine: sprd: Add device validation to support multiple controllers

2019-04-29 Thread Baolin Wang
On Mon, 29 Apr 2019 at 19:57, Vinod Koul wrote: > > On 15-04-19, 20:14, Baolin Wang wrote: > > From: Eric Long > > > > Since we can support multiple DMA engine controllers, we should add > > device validation in filter function to check if the correct

Re: [PATCH 7/7] dmaengine: sprd: Add interrupt support for 2-stage transfer

2019-04-29 Thread Baolin Wang
On Mon, 29 Apr 2019 at 20:01, Vinod Koul wrote: > > On 15-04-19, 20:15, Baolin Wang wrote: > > For 2-stage transfer, some users like Audio still need transaction interrupt > > to notify when the 2-stage transfer is completed. Thus we should enable > > 2-stage trans

Re: [PATCH 1/7] dmaengine: sprd: Fix the possible crash when getting engine status

2019-04-29 Thread Baolin Wang
Hi Vinod, On Mon, 29 Apr 2019 at 19:36, Vinod Koul wrote: > > On 15-04-19, 20:14, Baolin Wang wrote: > > We will get a NULL virtual descriptor by vchan_find_desc() when the > > descriptor > > has been submitted, that will crash the kernel when gettin

[PATCH v2 2/2] ASoC: sprd: Add Spreadtrum multi-channel data transfer support

2019-04-22 Thread Baolin Wang
be used DMA mode or interrupt mode to transfer data. Signed-off-by: Baolin Wang --- Changes from v1: - Move the driver from drivers/soc/sprd to sound/soc/sprd/, since it is only used by audio driver. - Rename the driver file and head file. --- sound/soc/sprd/Kconfig |8 + sound/soc/sprd

[PATCH v2 1/2] dt-bindings: ASoC: Add Spreadtrum multi-channel data transfer support

2019-04-22 Thread Baolin Wang
be used DMA mode or interrupt mode to transfer data. Signed-off-by: Baolin Wang --- Changes from v1: - Move the documentation into sound/. --- .../devicetree/bindings/sound/sprd-mcdt.txt| 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation

Re: [PATCH 2/2] soc: sprd: Add Spreadtrum multi-channel data transfer support

2019-04-21 Thread Baolin Wang
Hi Mark, On Fri, 19 Apr 2019 at 22:50, Mark Brown wrote: > > On Fri, Apr 19, 2019 at 06:54:32PM +0800, Baolin Wang wrote: > > On Spreadtrum platform, the audio subsystem will use the multi-channel > > data transfer controller to transfer sound stream between audio subsystem &

[PATCH 1/2] dt-bindings: soc: sprd: Add Spreadtrum MCDT documentation

2019-04-19 Thread Baolin Wang
Add documentation for Spreadtrum multi-channel data transfer controller, which is used for sound stream transmission between audio subsystem and other AP/CP subsystems. Signed-off-by: Baolin Wang --- .../devicetree/bindings/soc/sprd/sprd-mcdt.txt | 19 +++ 1 file changed

[PATCH 2/2] soc: sprd: Add Spreadtrum multi-channel data transfer support

2019-04-19 Thread Baolin Wang
be used DMA mode or interrupt mode to transfer data. Signed-off-by: Baolin Wang --- drivers/soc/Kconfig |1 + drivers/soc/Makefile |1 + drivers/soc/sprd/Kconfig | 12 + drivers/soc/sprd/Makefile |5 + drivers/soc/sprd/mcdt.c | 1010

[PATCH 1/7] dmaengine: sprd: Fix the possible crash when getting engine status

2019-04-15 Thread Baolin Wang
tor, then we can use 'schan->cur_desc' to get the engine status to avoid this issue. Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 48431e2..e29342a 100644 --- a/drive

[PATCH 0/7] Fix some bugs and add new feature for Spreadtrum DMA engine

2019-04-15 Thread Baolin Wang
Hi, This patch set fixes some DMA engine bugs and adds interrupt support for 2-stage transfer. Baolin Wang (3): dmaengine: sprd: Fix the possible crash when getting engine status dmaengine: sprd: Add validation of current descriptor in irq handler dmaengine: sprd: Add interrupt support

[PATCH 7/7] dmaengine: sprd: Add interrupt support for 2-stage transfer

2019-04-15 Thread Baolin Wang
For 2-stage transfer, some users like Audio still need transaction interrupt to notify when the 2-stage transfer is completed. Thus we should enable 2-stage transfer interrupt to support this feature. Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c | 22 +- 1 file

[PATCH 5/7] dmaengine: sprd: Fix block length overflow

2019-04-15 Thread Baolin Wang
length will not be a big value which is more than 0x. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 9f99d4b..a64271e 100644

[PATCH 6/7] dmaengine: sprd: Fix the right place to configure 2-stage transfer

2019-04-15 Thread Baolin Wang
From: Eric Long Move the 2-stage configuration before configuring the link-list mode, since we will use some 2-stage configuration to fill the link-list configuration. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c | 12 ++-- 1 file changed, 6

[PATCH 2/7] dmaengine: sprd: Add validation of current descriptor in irq handler

2019-04-15 Thread Baolin Wang
When user terminates one DMA channel to free all its descriptors, but at the same time one transaction interrupt was triggered possibly, now we should not handle this interrupt by validating if the 'schan->cur_desc' was set as NULL to avoid crashing the kernel. Signed-off-by: Baolin W

[PATCH 3/7] dmaengine: sprd: Fix the incorrect start for 2-stage destination channels

2019-04-15 Thread Baolin Wang
From: Eric Long The 2-stage destination channel will be triggered by source channel automatically, which means we should not trigger it by software request. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion

[PATCH 4/7] dmaengine: sprd: Add device validation to support multiple controllers

2019-04-15 Thread Baolin Wang
From: Eric Long Since we can support multiple DMA engine controllers, we should add device validation in filter function to check if the correct controller to be requested. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c |5 + 1 file changed, 5

[PATCH] ASoC: sprd: Add reserved DMA memory support

2019-04-12 Thread Baolin Wang
in this scenario, we usually reserve one region of memory to be used as a shared pool of DMA buffers for the platform component. So add of_reserved_mem_device_init_by_idx() function to initialize the shared pool of DMA buffers to be used by the platform component. Signed-off-by: Baolin Wang --- sound/soc

[PATCH] gpio: eic: sprd: Fix incorrect irq type setting for the sync EIC

2019-04-10 Thread Baolin Wang
When setting sync EIC as IRQ_TYPE_EDGE_BOTH type, we missed to set the SPRD_EIC_SYNC_INTMODE register to 0, which means detecting edge signals. Thus this patch fixes the issue. Fixes: 25518e024e3a ("gpio: Add Spreadtrum EIC driver support") Cc: Signed-off-by: Baolin Wang --- drivers

[PATCH] arm64: dts: sprd: Add clock properties for serial devices

2019-04-10 Thread Baolin Wang
We've introduced power management logics for the Spreadtrum serial controller by commit 062ec2774c8a ("serial: sprd: Add power management for the Spreadtrum serial controller"), thus add related clock properties to support this feature. Signed-off-by: Baolin Wang --- arch/arm64/boo

Re: [PATCH][next] ASoC: sprd: Fix spelling mistake "faied" -> "failed"

2019-04-04 Thread Baolin Wang
On Thu, 4 Apr 2019 at 15:56, Colin King wrote: > > From: Colin Ian King > > There are two identical spelling mistakes in dev_err messages. Fix them. > > Signed-off-by: Colin Ian King Thanks for fixing my mistakes. Reviewed-by: Baolin Wang -- Baolin Wang Best Regards

[PATCH] ASoC: sprd: Fix the smatch warning

2019-04-03 Thread Baolin Wang
Remove the unnecessary validation of the 'cstream' variable to fix below smatch warning: sprd_platform_compr_drain_notify() warn: variable dereferenced before check 'cstream' (see line 105) Reported-by: Dan Carpenter Signed-off-by: Baolin Wang --- sound/soc/sprd/sprd-pcm-compress.c | 3 +-- 1

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

2019-04-02 Thread Baolin Wang
On Wed, 3 Apr 2019 at 11:35, Mark Brown wrote: > > On Wed, Apr 03, 2019 at 10:12:47AM +0800, Baolin Wang wrote: > > > snd-soc-sprd-platform-objs := sprd-pcm-dma.o sprd-pcm-compress.o > > > obj-$(CONFIG_SND_SOC_SPRD) += snd-soc-sprd-platform.o > > > I will send

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

2019-04-02 Thread Baolin Wang
sprd-pcm-dma.o sprd-pcm-compress.o obj-$(CONFIG_SND_SOC_SPRD) += snd-soc-sprd-platform.o I will send out one incremental patch to fix this issue after my business trip. Thanks. -- Baolin Wang Best Regards

Re: [PATCH 29/42] drivers: gpio: sprd: use devm_platform_ioremap_resource()

2019-04-02 Thread Baolin Wang
On Tue, 2 Apr 2019 at 17:19, Linus Walleij wrote: > > On Tue, Apr 2, 2019 at 4:10 PM Baolin Wang wrote: > > On Tue, 2 Apr 2019 at 17:04, Linus Walleij wrote: > > > > > > On Tue, Mar 12, 2019 at 1:57 AM Enrico Weigelt, metux IT consult > > > wrote: >

Re: [PATCH 29/42] drivers: gpio: sprd: use devm_platform_ioremap_resource()

2019-04-02 Thread Baolin Wang
; > Signed-off-by: Enrico Weigelt, metux IT consult > > Patch applied with Baolin's ACK. This patch had some problems which I've pointed out and I did not ack this patch. Please do not apply it now until fixing the problem. -- Baolin Wang Best Regards

Re: [RESEND PATCH] mfd: sc27xx: Use SoC compatible string for PMIC devices

2019-04-02 Thread Baolin Wang
On Tue, 2 Apr 2019 at 12:58, Lee Jones wrote: > > On Mon, 18 Mar 2019, Baolin Wang wrote: > > > We should use SoC compatible string in stead of wildcard string for > > PMIC child devices. > > > > Signed-off-by: Baolin Wang > > --- > > Hi Lee, &g

[PATCH] ASoC: sprd: Add Spreadtrum audio compress offload support

2019-03-27 Thread Baolin Wang
to start to transfer data from DDR buffer to the IRAM buffer. This can reduce the AP subsystem wakeup times to save power. Co-developed-by: Yintang Ren Signed-off-by: Baolin Wang --- sound/soc/sprd/Kconfig |1 + sound/soc/sprd/Makefile|2 +- sound/soc/sprd/sprd

Re: [PATCH v2 0/4] Add new features for the Spreadtrum serial controller

2019-03-26 Thread Baolin Wang
On Wed, 27 Mar 2019 at 08:59, Greg KH wrote: > > On Tue, Mar 26, 2019 at 06:41:31PM +0800, Baolin Wang wrote: > > Hi Greg, > > > > On Mon, 4 Mar 2019 at 16:59, Baolin Wang wrote: > > > > > > This patch set fixes the baud rate calculation formula issue

Re: [PATCH v2 0/4] Add new features for the Spreadtrum serial controller

2019-03-26 Thread Baolin Wang
Hi Greg, On Mon, 4 Mar 2019 at 16:59, Baolin Wang wrote: > > This patch set fixes the baud rate calculation formula issue, as well as > adding power management support and DMA mode support for the Spreadtrum > serial controller. > > Changes from v1: > - The patch 1 of V1 w

[RESEND PATCH] mfd: sc27xx: Use SoC compatible string for PMIC devices

2019-03-17 Thread Baolin Wang
We should use SoC compatible string in stead of wildcard string for PMIC child devices. Signed-off-by: Baolin Wang --- Hi Lee, Could you merge this patch into v5.1-rc if no objection from you? Since our DTS patches had been merged into v5.1, our PMIC can not work without this patch. Thanks

Re: [PATCH v2] drivers: gpio: sprd: use devm_platform_ioremap_resource()

2019-03-12 Thread Baolin Wang
return PTR_ERR(sprd_eic->base[i]); > + continue; > } I still do not think the new API is suitable for this case. Since we can have optional multiple IO resources, so the original code will not return errors if we did not get the IO resource

Re: [PATCH 29/42] drivers: gpio: sprd: use devm_platform_ioremap_resource()

2019-03-11 Thread Baolin Wang
esource(pdev, 0); > if (IS_ERR(sprd_gpio->base)) > return PTR_ERR(sprd_gpio->base); > Thanks for your patch. Reviewed-by: Baolin Wang -- Baolin Wang Best Regards

Re: [PATCH 09/42] drivers: gpio: sprd: use devm_platform_ioremap_resource()

2019-03-11 Thread Baolin Wang
you only get index 0. > if (IS_ERR(sprd_eic->base[i])) > - return PTR_ERR(sprd_eic->base[i]); > + continue; > } > > sprd_eic->chip.label = sprd_eic_label_name[sprd_eic->type]; > -- > 1.9.1 > -- Baolin Wang Best Regards

Re: 5.0-rc1 Open circuit voltage tables -- 3afb50d7125bc

2019-03-11 Thread Baolin Wang
ent is from Qualcomm. Since they have multiple OCV tables in different temperatures. > > Ping? That code is just bad. Does someone care? Sorry, I missed your previous email. -- Baolin Wang Best Regards

[PATCH v2 4/4] serial: sprd: Add DMA mode support

2019-03-04 Thread Baolin Wang
From: Lanqing Liu Add DMA mode support for the Spreadtrum serial controller. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- drivers/tty/serial/sprd_serial.c | 440 -- 1 file changed, 426 insertions(+), 14 deletions(-) diff --git a/drivers/tty

[PATCH v2 3/4] dt-bindings: serial: sprd: Add dma properties to support DMA mode

2019-03-04 Thread Baolin Wang
From: Lanqing Liu This patch adds dmas and dma-names properties for the UART DMA mode. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- .../devicetree/bindings/serial/sprd-uart.txt |6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH v2 2/4] serial: sprd: Add power management for the Spreadtrum serial controller

2019-03-04 Thread Baolin Wang
From: Lanqing Liu This patch adds power management for the Spreadtrum serial controller. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- drivers/tty/serial/sprd_serial.c | 61 +++--- 1 file changed, 57 insertions(+), 4 deletions(-) diff --git

[PATCH v2 1/4] dt-bindings: serial: sprd: Add clocks and clocks-names properties

2019-03-04 Thread Baolin Wang
From: Lanqing Liu This patch adds clocks and clocks-names properties, which are used to do power management for our UART driver. Reviewed-by: Rob Herring Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- .../devicetree/bindings/serial/sprd-uart.txt | 11 +-- 1 file

[PATCH v2 0/4] Add new features for the Spreadtrum serial controller

2019-03-04 Thread Baolin Wang
This patch set fixes the baud rate calculation formula issue, as well as adding power management support and DMA mode support for the Spreadtrum serial controller. Changes from v1: - The patch 1 of V1 was applied, so remove the baud rate fix from this patch set. - Add reviewed tag from Rob for

Re: [PATCH 4/5] dt-bindings: serial: sprd: Add dma properties to support DMA mode

2019-03-01 Thread Baolin Wang
On Fri, 1 Mar 2019 at 03:53, Rob Herring wrote: > > On Tue, Feb 19, 2019 at 03:31:14PM +0800, Baolin Wang wrote: > > From: Lanqing Liu > > > > This patch adds dmas and dma-names properties for the UART DMA mode. > > > > Signed-off-by: Lanqing

Re: [PATCH] mfd: sc27xx: Use SoC compatible string for PMIC devices

2019-02-24 Thread Baolin Wang
Hi Lee, On Wed, 13 Feb 2019 at 20:57, Baolin Wang wrote: > > We should use SoC compatible string in stead of wildcard string for > PMIC child devices. > > Signed-off-by: Baolin Wang > --- Could you apply this patch if you have no other issues? Thanks. > drivers/mfd/spr

[PATCH v2 2/2] dmaengine: sprd: Change channel id to slave id for DMA cell specifier

2019-02-20 Thread Baolin Wang
-by: Baolin Wang --- Changes from v1: - Remove channel id from DT. --- drivers/dma/sprd-dma.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index e2f0167..48431e2 100644 --- a/drivers/dma/sprd-dma.c +++ b

[PATCH v2 1/2] dt-bindings: dmaengine: sprd: Change channel id to slave id for DMA cell specifier

2019-02-20 Thread Baolin Wang
-off-by: Baolin Wang --- Changes from v1: - Remove channel id from DT. --- Documentation/devicetree/bindings/dma/sprd-dma.txt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/dma/sprd-dma.txt b/Documentation/devicetree/bindings/dma/sprd

Re: [PATCH 1/3] dt-bindings: dmaengine: Add one new cell to present hardware slave id

2019-02-20 Thread Baolin Wang
On Wed, 20 Feb 2019 at 17:08, Arnd Bergmann wrote: > > On Wed, Feb 20, 2019 at 4:13 AM Baolin Wang wrote: > > On Tue, 19 Feb 2019 at 20:20, Vinod Koul wrote: > > > On 19-02-19, 17:49, Baolin Wang wrote: > > > > On Tue, 19 Feb 2019 at 17:30, Geert Uytterhoeven

Re: [PATCH 1/3] dt-bindings: dmaengine: Add one new cell to present hardware slave id

2019-02-19 Thread Baolin Wang
On Tue, 19 Feb 2019 at 20:20, Vinod Koul wrote: > > On 19-02-19, 17:49, Baolin Wang wrote: > > Hi Geert, > > > > On Tue, 19 Feb 2019 at 17:30, Geert Uytterhoeven > > wrote: > > > > > > Hi Baolin, > > > > > > On Tue, Feb 19, 2019

Re: [PATCH 1/3] dt-bindings: dmaengine: Add one new cell to present hardware slave id

2019-02-19 Thread Baolin Wang
Hi Geert, On Tue, 19 Feb 2019 at 17:30, Geert Uytterhoeven wrote: > > Hi Baolin, > > On Tue, Feb 19, 2019 at 4:15 AM Baolin Wang wrote: > > On Mon, 18 Feb 2019 at 20:23, Arnd Bergmann wrote: > > > On Mon, Feb 18, 2019 at 11:52 AM Baolin Wang > > > wrote:

[PATCH 4/5] dt-bindings: serial: sprd: Add dma properties to support DMA mode

2019-02-18 Thread Baolin Wang
From: Lanqing Liu This patch adds dmas and dma-names properties for the UART DMA mode. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- .../devicetree/bindings/serial/sprd-uart.txt |6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH 3/5] serial: sprd: Add power management for the Spreadtrum serial controller

2019-02-18 Thread Baolin Wang
From: Lanqing Liu This patch adds power management for the Spreadtrum serial controller. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- drivers/tty/serial/sprd_serial.c | 61 +++--- 1 file changed, 57 insertions(+), 4 deletions(-) diff --git

[PATCH 5/5] serial: sprd: Add DMA mode support

2019-02-18 Thread Baolin Wang
From: Lanqing Liu Add DMA mode support for the Spreadtrum serial controller. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- drivers/tty/serial/sprd_serial.c | 440 -- 1 file changed, 426 insertions(+), 14 deletions(-) diff --git a/drivers/tty

[PATCH 2/5] dt-bindings: serial: sprd: Add clocks and clocks-names properties

2019-02-18 Thread Baolin Wang
From: Lanqing Liu This patch adds clocks and clocks-names properties, which are used to do power management for our UART driver. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- .../devicetree/bindings/serial/sprd-uart.txt | 11 +-- 1 file changed, 9 insertions(+), 2

[PATCH 0/5] Add new features for the Spreadtrum serial controller

2019-02-18 Thread Baolin Wang
This patch set fixes the baud rate calculation formula issue, as well as adding power management support and DMA mode support for the Spreadtrum serial controller. Lanqing Liu (5): serial: sprd: Modify the baud rate calculation formula dt-bindings: serial: sprd: Add clocks and clocks-names

[PATCH 1/5] serial: sprd: Modify the baud rate calculation formula

2019-02-18 Thread Baolin Wang
not meet the external transmission requirements. Thus this patch modifies the baud rate calculation formula to support the serial controller output the maximum baud rate. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- drivers/tty/serial/sprd_serial.c |2 +- 1 file changed, 1 insertion

Re: [PATCH v2 2/3] dt-bindings: spi: Add the DMA properties for the SPI dma mode

2019-02-18 Thread Baolin Wang
On Mon, 18 Feb 2019 at 22:02, Rob Herring wrote: > > On Wed, Feb 13, 2019 at 1:37 AM Baolin Wang wrote: > > > > From: Lanqing Liu > > > > Add the DMA properties for the SPI dma mode. > > > > Signed-off-by: Lanqing Liu > > Signed-off-by: Baolin

Re: [PATCH 1/3] dt-bindings: dmaengine: Add one new cell to present hardware slave id

2019-02-18 Thread Baolin Wang
On Mon, 18 Feb 2019 at 20:23, Arnd Bergmann wrote: > > On Mon, Feb 18, 2019 at 11:52 AM Baolin Wang wrote: > > On Mon, 18 Feb 2019 at 18:31, Arnd Bergmann wrote: > > > > > > On Tue, Feb 12, 2019 at 9:25 AM Baolin Wang > > > wrote: > > > &

[PATCH v3 2/2] gpio: sprd: Change to use SoC compatible string

2019-02-18 Thread Baolin Wang
the backwards compatibility. Signed-off-by: Baolin Wang --- Changes from v2: - Add some comments to explain why we do not care backwards compatibility. Changes from v1: - None. --- drivers/gpio/gpio-pmic-eic-sprd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH v3 1/2] dt-bindings: gpio: sprd: Use SoC compatible string instead of wildcard string

2019-02-18 Thread Baolin Wang
Use SoC compatible string instead of wildcard string. Reviewed-by: Rob Herring Signed-off-by: Baolin Wang --- Changes from v2: - Add reviewed tag from Rob. Changes from v1: - Add 'sprd' to indicate the module in subject line. --- .../devicetree/bindings/gpio/gpio-eic-sprd.txt |4

Re: [PATCH v2 2/2] gpio: sprd: Change to use SoC compatible string

2019-02-18 Thread Baolin Wang
On Tue, 19 Feb 2019 at 04:07, Rob Herring wrote: > > On Fri, Feb 15, 2019 at 12:55:19PM +0800, Baolin Wang wrote: > > Change to use SoC compatible string instead of wildcard string. > > > > Signed-off-by: Baolin Wang > > --- > > Changes from v1: > > -

<    1   2   3   4   5   6   7   8   9   10   >