Re: [PATCH 2/4] ASoC: omap-hdmi-audio: add NULL test

2015-12-21 Thread Peter Ujfalusi
> ... when != x == NULL > x->fld > // > > Signed-off-by: Julia Lawall <julia.law...@lip6.fr> Acked-by: Peter Ujfalusi <peter.ujfal...@ti.com> > --- > sound/soc/omap/omap-hdmi-audio.c |2 ++ > 1 file changed, 2 insertions(+) > > diff --git

Re: [PATCH] mtd: onenand: omap2: Simplify the DMA setup for various paths

2015-12-21 Thread Peter Ujfalusi
On 12/19/2015 03:30 PM, Aaro Koskinen wrote: > Probably DMA support is not that critical. Looks like with DT boot it's > not even possible to enable it at the moment. I think by adding 'dma-channel' property is there to enable the DMA mode via DT. As for stripping out the DMA support: I'm fine

Re: [PATCH] mtd: onenand: omap2: Simplify the DMA setup for various paths

2015-12-18 Thread Peter Ujfalusi
On 12/18/2015 08:11 PM, Brian Norris wrote: > On Mon, Dec 14, 2015 at 11:49:32AM +0200, Peter Ujfalusi wrote: >> We have 4 functions containing almost identical DMA setup code. Create one >> function which can set up the DMA for both read and write and use this in >> pla

[PATCH v02 1/2] ARM: DTS: am33xx: Use the new DT bindings for the eDMA3

2015-12-17 Thread Peter Ujfalusi
with the old binding it was not possible for a driver to know which channel is allowed to be used as non HW triggered channel. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/boot/dts/am335x-evm.dts| 9 +--- arch/arm/boot/dts/am335x-pepper.dts | 11 + arch/arm/bo

[PATCH v02 2/2] ARM: DTS: am437x: Use the new DT bindings for the eDMA3

2015-12-17 Thread Peter Ujfalusi
with the old binding it was not possible for a driver to know which channel is allowed to be used as non HW triggered channel. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/boot/dts/am4372.dtsi | 80 +++-- arch/arm/boot/dts/am437x-gp-e

[PATCH v02 0/2] ARM: DTS: am33xx/am437x: Use the new eDMA bindings

2015-12-17 Thread Peter Ujfalusi
have the 16bit type. The changes are now merged to mainline and Vinod provided us a branch: git://git.infradead.org/users/vkoul/slave-dma.git fix/edma Which is based on 4.4-rc1 and only contains the two patch for changing the eDMA bindings. Regards, Peter --- Peter Ujfalusi (2): ARM: DTS

[PATCH] dmaengine: edma: Add probe callback to edma_tptc_driver

2015-12-16 Thread Peter Ujfalusi
but no driver. Idling [3.024671] platform 49a0.tptc: omap_device_late_idle: enabled but no driver. Idling This will prevent eDMA to work since the TPTCs are not enabled. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> Fixes: 34635b1accb9 ("dmaengine: edma: Add d

[PATCH V02 0/5] dmaengine: New 'universal' API for requesting channel

2015-12-14 Thread Peter Ujfalusi
vecnt; ecc->dma_slave.filter_map.fn = edma_filter_fn; When neither DT or ACPI lookup is available the dma_request_chan() will try to match the requester's device name with the filter_map's list of device names, when a match found it will use the information from the dma_slave_map to get the cha

[PATCH V02 2/5] dmaengine: core: Move and merge the code paths using private_candidate

2015-12-14 Thread Peter Ujfalusi
-by: Peter Ujfalusi <peter.ujfal...@ti.com> Reviewed-by: Andy Shevchenko <andy.shevche...@gmail.com> --- drivers/dma/dmaengine.c | 81 + 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/drivers/dma/dmaengine.c b/drivers/dma

[PATCH V02 5/5] dmaengine: omap-dma: Add support for DMA filter mapping to slave devices

2015-12-14 Thread Peter Ujfalusi
Add support for providing device to filter_fn mapping so client drivers can switch to use the dma_request_chan() API. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/omap-dma.c | 4 include/linux/omap-dma.h | 6 ++ 2 files changed, 10 insertions(+) diff

[PATCH V02 4/5] dmaengine: edma: Add support for DMA filter mapping to slave devices

2015-12-14 Thread Peter Ujfalusi
Add support for providing device to filter_fn mapping so client drivers can switch to use the dma_request_chan() API. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 4 include/linux/platform_data/edma.h | 7 +++ 2 files chang

[PATCH V02 3/5] dmaengine: core: Introduce new, universal API to request a channel

2015-12-14 Thread Peter Ujfalusi
le the dma_request_chan() will try to match the requester's device name with the filter_map's list of device names, when a match found it will use the information from the dma_slave_map to get the channel with the dma_get_channel() internal function. Signed-off-by: Peter Ujfalusi <peter.ujfal

[PATCH V02 1/5] dmaengine: core: Skip mask matching when it is not provided to private_candidate

2015-12-14 Thread Peter Ujfalusi
If mask is NULL skip the mask matching against the DMA device capabilities. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> Reviewed-by: Andy Shevchenko <andy.shevche...@gmail.com> --- drivers/dma/dmaengine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH] mtd: onenand: omap2: Convert to use dmaengine for memcpy

2015-12-14 Thread Peter Ujfalusi
Do not use the legacy and deprecated omap-dma interface for setting up the memcpy. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- Hi, this patch depends on the dma setup simplification patch: https://www.mail-archive.com/linux-omap@vger.kernel.org/msg122375.html We cou

[PATCH] mtd: onenand: omap2: Simplify the DMA setup for various paths

2015-12-14 Thread Peter Ujfalusi
for the transfer instead of hardwiring 32 or 16 bit data. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/mtd/onenand/omap2.c | 106 ++-- 1 file changed, 42 insertions(+), 64 deletions(-) diff --git a/drivers/mtd/onenand/omap2.c b/d

[PATCH V03 3/5] dmaengine: core: Introduce new, universal API to request a channel

2015-12-14 Thread Peter Ujfalusi
le the dma_request_chan() will try to match the requester's device name with the filter_map's list of device names, when a match found it will use the information from the dma_slave_map to get the channel with the dma_get_channel() internal function. Signed-off-by: Peter Ujfalusi <peter.ujfal..

[PATCH V03 4/5] dmaengine: edma: Add support for DMA filter mapping to slave devices

2015-12-14 Thread Peter Ujfalusi
Add support for providing device to filter_fn mapping so client drivers can switch to use the dma_request_chan() API. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> --- drivers/dma/edma.c | 4 include/linux/p

Re: [PATCH V02 3/5] dmaengine: core: Introduce new, universal API to request a channel

2015-12-14 Thread Peter Ujfalusi
On 12/14/2015 01:22 PM, Peter Ujfalusi wrote: > /** > + * struct dma_slave_map - associates slave device and it's slave channel with > + * parameter to be used by a filter function > + * @devname: name of the device > + * @slave: slave channel name > + * @param: opaque

[PATCH V03 0/5] dmaengine: New 'universal' API for requesting channel

2015-12-14 Thread Peter Ujfalusi
r_map's list of device names, when a match found it will use the information from the dma_slave_map to get the channel with the dma_get_channel() internal function. Tested on OMAP-L138 (dm850) EVM, with updtaed patches from RFC v03 [1]. Both legacy and DT boot works fine. [1] https://www.mail-arch

[PATCH V03 1/5] dmaengine: core: Skip mask matching when it is not provided to private_candidate

2015-12-14 Thread Peter Ujfalusi
If mask is NULL skip the mask matching against the DMA device capabilities. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> Reviewed-by: Andy Shevchenko <andy.shevche...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> --- drivers/dma/dmaengine.c | 2 +- 1 file ch

[PATCH V03 5/5] dmaengine: omap-dma: Add support for DMA filter mapping to slave devices

2015-12-14 Thread Peter Ujfalusi
Add support for providing device to filter_fn mapping so client drivers can switch to use the dma_request_chan() API. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> --- drivers/dma/omap-dma.c | 4 include/linux/omap-dma.h |

[PATCH V03 2/5] dmaengine: core: Move and merge the code paths using private_candidate

2015-12-14 Thread Peter Ujfalusi
-by: Peter Ujfalusi <peter.ujfal...@ti.com> Reviewed-by: Andy Shevchenko <andy.shevche...@gmail.com> Reviewed-by: Arnd Bergmann <a...@arndb.de> --- drivers/dma/dmaengine.c | 81 + 1 file changed, 42 insertions(+), 39 deletions(-) di

[PATCH 1/2] ARM: OMAP1: Remove device creation for omap-pcm-audio

2015-12-11 Thread Peter Ujfalusi
The omap-pcm in ASoC is no longer a platform device. No need to create this device anymore. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-omap1/devices.c | 19 --- 1 file changed, 19 deletions(-) diff --git a/arch/arm/mach-omap1/devices.c b/ar

[PATCH 2/2] ARM: OMAP2+: Remove device creation for omap-pcm-audio

2015-12-11 Thread Peter Ujfalusi
The omap-pcm in ASoC is no longer a platform device. No need to create this device anymore. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-omap2/devices.c | 25 - 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/arch/arm/mach

[PATCH 0/2] ARM: OMAP1/2+: DO not create omap-pcm-audio device

2015-12-11 Thread Peter Ujfalusi
Hi, The ASoC omap-pcm has been converted to be non platform device a long time ago, so it is no longer needed to create the device for it since there will be no driver to be loaded for it. Regards, Peter --- Peter Ujfalusi (2): ARM: OMAP1: Remove device creation for omap-pcm-audio ARM: OMAP2

[PATCH for 4.4 1/2] dmaengine: edma: DT: Change memcpy channel array from 16bit to 32bit type

2015-12-09 Thread Peter Ujfalusi
This change makes the DT file to be easier to read since the memcpy channels array does not need the '/bits/ 16' to be specified, which might confuse some people. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- Documentation/devicetree/bindings/dma/ti-edma.txt | 5 ++--- drive

[PATCH for 4.4 2/2] dmaengine: edma: DT: Change reserved slot array from 16bit to 32bit type

2015-12-09 Thread Peter Ujfalusi
This change makes the DT file to be easier to read since the reserved slots array does not need the '/bits/ 16' to be specified, which might confuse some people. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- Documentation/devicetree/bindings/dma/ti-edma.txt | 5 ++-- drive

[PATCH for 4.4 0/2] DT/dmaengine: edma: Convert 16bit arrays to 32bit

2015-12-09 Thread Peter Ujfalusi
' API". Tony, Arnd, Vinod: Can you agree on the practicalities on how these patches are going to be handled? I would like to send the updated am33xx/am437x conversion for 4.5 based on these changes. Thanks and regards, Peter --- Peter Ujfalusi (2): dmaengine: edma: DT: Change memcpy channel

[GIT PULL for 4.4] DT/dmaengine: edma: Update for the new bindings

2015-12-09 Thread Peter Ujfalusi
to af9089852e0ecd6ae7336992d29b04d7d82b404a: dmaengine: edma: DT: Change reserved slot array from 16bit to 32bit type (2015-12-09 11:56:56 +0200) Peter Ujfalusi (2): dmaengine: edma: DT: Change memcpy channel array from 16bit to 32bit type

Re: [PATCH 4/4] dmaengine: edma: Add support for DMA filter mapping to slave devices

2015-12-08 Thread Peter Ujfalusi
On 12/03/2015 05:46 PM, Peter Ujfalusi wrote: > On 12/03/2015 05:38 PM, Arnd Bergmann wrote: >> On Thursday 03 December 2015 16:33:12 Peter Ujfalusi wrote: >>> diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c >>> index 0675e268d577..46b305ea0d21 100644 >>>

Re: [PATCH] ARM: DTS: am33xx: Use the new DT bindings for the eDMA3

2015-12-08 Thread Peter Ujfalusi
On 12/08/2015 11:51 AM, Arnd Bergmann wrote: > On Tuesday 08 December 2015 09:42:26 Peter Ujfalusi wrote: >> On 12/04/2015 11:51 PM, Tony Lindgren wrote: >>>> >>>> Please just drop the /bits/ 16 and use normal cells. >>> >>> Yeah agre

Re: [PATCH] ARM: DTS: am33xx: Use the new DT bindings for the eDMA3

2015-12-07 Thread Peter Ujfalusi
On 12/04/2015 11:51 PM, Tony Lindgren wrote: > * Arnd Bergmann <a...@arndb.de> [151204 13:38]: >> On Friday 04 December 2015 10:47:07 Tony Lindgren wrote: >>>> Peter Ujfalusi <peter.ujfal...@ti.com> writes: >>>>> @@ -174,12 +182,44 @@ >>&

Re: [PATCH] ARM: DTS: am33xx: Use the new DT bindings for the eDMA3

2015-12-07 Thread Peter Ujfalusi
On 12/08/2015 02:19 AM, Tony Lindgren wrote: > * Peter Ujfalusi <peter.ujfal...@ti.com> [151204 02:46]: >> + >> +ti,tptcs = <_tptc0 7>, <_tptc1 5>, >> + <_tptc2 0>; >> + >> +

Re: [PATCH v2 13/14] ARM: DTS: am33xx: Use the new DT bindings for the eDMA3

2015-12-04 Thread Peter Ujfalusi
On 12/04/2015 02:54 AM, Tony Lindgren wrote: > Hi Peter, > > * Peter Ujfalusi <peter.ujfal...@ti.com> [151016 00:23]: > > I noticed something while changing dm81xx to use the edma_xbar.. > >> --- a/arch/arm/boot/dts/am33xx.dtsi >>

Re: [PATCH 2/7] ARM: dts: Update edma bindings on dm814x to use edma_xbar

2015-12-04 Thread Peter Ujfalusi
On 12/04/2015 03:25 AM, Tony Lindgren wrote: > The edma is the same as on am33xx, except it has four tptc > instances. And we need the edma_xbar for at least mmc3, so > let's use the edma_xbar and the new binding as suggested by > Peter Ujfalusi <peter.ujfal...@ti.com>. >

[PATCH] ARM: DTS: am33xx: Use the new DT bindings for the eDMA3

2015-12-04 Thread Peter Ujfalusi
with the old binding it was not possible for a driver to know which channel is allowed to be used as non HW triggered channel. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/boot/dts/am335x-evm.dts| 9 +--- arch/arm/boot/dts/am335x-pepper.dts | 11 + arch/arm/bo

[PATCH] ARM: DTS: am437x: Use the new DT bindings for the eDMA3

2015-12-04 Thread Peter Ujfalusi
with the old binding it was not possible for a driver to know which channel is allowed to be used as non HW triggered channel. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/boot/dts/am4372.dtsi | 80 +++-- arch/arm/boot/dts/am437x-gp-e

Re: [PATCH 7/7] ARM: dts: Enable emmc on hp t410

2015-12-04 Thread Peter Ujfalusi
the mmc3, other than that: Reviewed-by: Peter Ujfalusi <peter.ujfal...@ti.com> > --- > arch/arm/boot/dts/dm8148-t410.dts | 35 +++ > 1 file changed, 35 insertions(+) > > diff --git a/arch/arm/boot/dts/dm8148-t410.dts > b/arch/arm/boot

Re: [RFC v03 03/15] dmaengine: core: Introduce new, universal API to request a channel

2015-12-03 Thread Peter Ujfalusi
On 12/02/2015 04:35 PM, Andy Shevchenko wrote: >> +const static struct dma_filter_map *dma_filter_match(struct dma_device >> *device, >> + const char *name, >> + struct device *dev) >> +{ >> + const

[PATCH 0/4] dmaengine: New 'universal' API for requesting channel

2015-12-03 Thread Peter Ujfalusi
uest_chan() will try to match the requester's device name with the filter_map's list of device names, when a match found it will use the information from the dma_slave_map to get the channel with the dma_get_channel() internal function. Tested on OMAP-L138 (dm850) EVM, with updtaed patches from

[PATCH 2/4] dmaengine: core: Move and merge the code paths using private_candidate

2015-12-03 Thread Peter Ujfalusi
-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/dmaengine.c | 81 + 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index 6311e1fc80be..ea9d66982d40 100644 --- a/drive

[PATCH 4/4] dmaengine: edma: Add support for DMA filter mapping to slave devices

2015-12-03 Thread Peter Ujfalusi
Add support for providing device to filter_fn mapping so client drivers can switch to use the dma_request_chan() API. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 6 ++ include/linux/platform_data/edma.h | 7 +++ 2 files chang

Re: [PATCH 4/4] dmaengine: edma: Add support for DMA filter mapping to slave devices

2015-12-03 Thread Peter Ujfalusi
On 12/03/2015 05:38 PM, Arnd Bergmann wrote: > On Thursday 03 December 2015 16:33:12 Peter Ujfalusi wrote: >> diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c >> index 0675e268d577..46b305ea0d21 100644 >> --- a/drivers/dma/edma.c >> +++ b/drivers/dma/edma.c >>

Re: [PATCH 3/4] dmaengine: core: Introduce new, universal API to request a channel

2015-12-03 Thread Peter Ujfalusi
On 12/03/2015 05:32 PM, Arnd Bergmann wrote: > On Thursday 03 December 2015 16:33:11 Peter Ujfalusi wrote: >> + >> +/** >> + * dma_request_chan - try to allocate an exclusive slave channel >> + * @dev: pointer to client device structure >> +

[PATCH 3/4] dmaengine: core: Introduce new, universal API to request a channel

2015-12-03 Thread Peter Ujfalusi
a_filter_fn; } When neither DT or ACPI lookup is available the dma_request_chan() will try to match the requester's device name with the filter_map's list of device names, when a match found it will use the information from the dma_slave_map to get the channel with the dma_get_channel() internal f

[PATCH 1/4] dmaengine: core: Skip mask matching when it is not provided to private_candidate

2015-12-03 Thread Peter Ujfalusi
If mask is NULL skip the mask matching against the DMA device capabilities. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/dmaengine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index daf54a

Re: [RFC v02 04/15] dmaengine: edma: Add support for DMA filter mapping to slave devices

2015-12-02 Thread Peter Ujfalusi
On 12/02/2015 06:37 AM, Vinod Koul wrote: > On Tue, Dec 01, 2015 at 09:20:28PM +0100, Arnd Bergmann wrote: >> On Tuesday 01 December 2015 22:52:12 Vinod Koul wrote: >>> On Mon, Nov 30, 2015 at 03:45:34PM +0200, Peter Ujfalusi wrote: >>>> Add support for providing

Re: [RFC v02 03/15] dmaengine: core: Introduce new, universal API to request a channel

2015-12-02 Thread Peter Ujfalusi
On 12/01/2015 07:00 PM, Tony Lindgren wrote: >> I see. The dm81xx basically am33xx/am43xx? > > Yeah similar to am33xx with different clocks and with a bunch of accelerators. > >> Actually I would prefer to use the dmaengine's event router framework and we >> do have support for the am33xx/am43xx

Re: [RFC v02 00/15] dmaengine: New 'universal' API for requesting channel

2015-12-02 Thread Peter Ujfalusi
On 12/01/2015 04:24 PM, Arnd Bergmann wrote: > On Tuesday 01 December 2015 15:45:32 Peter Ujfalusi wrote: >>>> static struct dma_filter_map da830_edma_map[] = { >>>> DMA_FILTER_ENTRY("davinci-mcasp.0", "rx", EDMA_CTLR_CHAN(0, 0)), >&

Re: [RFC v02 00/15] dmaengine: New 'universal' API for requesting channel

2015-12-02 Thread Peter Ujfalusi
On 12/01/2015 10:17 PM, Arnd Bergmann wrote: > On Tuesday 01 December 2015 22:29:54 Vinod Koul wrote: >> On Mon, Nov 30, 2015 at 03:45:30PM +0200, Peter Ujfalusi wrote: >>> channel via DT, ACPI or in case if the kernel booted in non DT/ACPI mode >>> it will use a filter

[RFC v03 01/15] dmaengine: core: Skip mask matching when it is not provided to private_candidate

2015-12-02 Thread Peter Ujfalusi
If mask is NULL skip the mask matching against the DMA device capabilities. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/dmaengine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index daf54a

[RFC v03 12/15] ARM: davinci: devices-da8xx: Remove DMA resources for MMC and SPI

2015-12-02 Thread Peter Ujfalusi
The drivers are now converted to not use the DMA resource. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/devices-da8xx.c | 49 --- 1 file changed, 49 deletions(-) diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/ar

[RFC v03 15/15] ARM: davinci: dm365: Remove DMA resources for SPI

2015-12-02 Thread Peter Ujfalusi
The driver is converted to not use the DMA resource. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/dm365.c | 8 1 file changed, 8 deletions(-) diff --git a/arch/arm/mach-davinci/dm365.c b/arch/arm/mach-davinci/dm365.c index e794bff7d589..664ee6

[RFC v03 10/15] mmc: davinci_mmc: Use dma_request_chan() to requesting DMA channel

2015-12-02 Thread Peter Ujfalusi
With the new dma_request_chan() the clinet driver does not need to look for the DMA resource and it does not need to pass filter_fn anymore. By switching to the new API the davinci_mmc driver can now support deferred probing against DMA. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.

[RFC v03 14/15] ARM: davinci: dm355: Remove DMA resources for SPI

2015-12-02 Thread Peter Ujfalusi
The driver is converted to not use the DMA resource. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/dm355.c | 8 1 file changed, 8 deletions(-) diff --git a/arch/arm/mach-davinci/dm355.c b/arch/arm/mach-davinci/dm355.c index ee7656fa0c52..bed8f4

[RFC v03 06/15] ARM: davinci: dm355: Add dma_filter_map to edma

2015-12-02 Thread Peter Ujfalusi
Provide the dma_filter_map to edma which will allow us to move the drivers to the new, simpler dmaengine API and we can remove the DMA resources also for the devices. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/dm355.c | 20 1 file c

[RFC v03 09/15] ARM: davinci: dm646x: Add dma_filter_map to edma

2015-12-02 Thread Peter Ujfalusi
Provide the dma_filter_map to edma which will allow us to move the drivers to the new, simpler dmaengine API and we can remove the DMA resources also for the devices. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/dm646x.c | 11 +++ 1 file chang

[RFC v03 04/15] dmaengine: edma: Add support for DMA filter mapping to slave devices

2015-12-02 Thread Peter Ujfalusi
Add support for providing device to filter_fn mapping so client drivers can switch to use the dma_request_chan() API. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 6 ++ include/linux/platform_data/edma.h | 7 +++ 2 files chang

[RFC v03 07/15] ARM: davinci: dm365: Add dma_filter_map to edma

2015-12-02 Thread Peter Ujfalusi
Provide the dma_filter_map to edma which will allow us to move the drivers to the new, simpler dmaengine API and we can remove the DMA resources also for the devices. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/dm365.c | 22 ++

[RFC v03 00/15] dmaengine: New 'universal' API for requesting channel

2015-12-02 Thread Peter Ujfalusi
lavecnt; ecc->dma_slave.filter_map.filter_fn = edma_filter_fn; } When neither DT or ACPI lookup is available the dma_request_chan() will try to match the requester's device name with the filter_map's list of device names, when a match found it will use the information from th

[RFC v03 05/15] ARM: davinci: devices-da8xx: Add dma_filter_map to edma

2015-12-02 Thread Peter Ujfalusi
Provide the dma_filter_map to edma which will allow us to move the drivers to the new, simpler dmaengine API and we can remove the DMA resources also for the devices. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/devices-da8xx.

[RFC v03 08/15] ARM: davinci: dm644x: Add dma_filter_map to edma

2015-12-02 Thread Peter Ujfalusi
Provide the dma_filter_map to edma which will allow us to move the drivers to the new, simpler dmaengine API and we can remove the DMA resources also for the devices. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/dm644x.c | 12 1 file chang

[RFC v03 13/15] ARM: davinci: devices: Remove DMA resources for MMC

2015-12-02 Thread Peter Ujfalusi
The driver is converted to not use the DMA resource. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/devices.c | 19 --- 1 file changed, 19 deletions(-) diff --git a/arch/arm/mach-davinci/devices.c b/arch/arm/mach-davinci/devices.c

[RFC v03 11/15] spi: davinci: Use dma_request_chan() to requesting DMA channel

2015-12-02 Thread Peter Ujfalusi
With the new dma_request_chan() the clinet driver does not need to look for the DMA resource and it does not need to pass filter_fn anymore. By switching to the new API the davinci_mmc driver can now support deferred probing against DMA. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.

[RFC v03 02/15] dmaengine: core: Move and merge the code paths using private_candidate

2015-12-02 Thread Peter Ujfalusi
-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/dmaengine.c | 81 + 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index 6311e1fc80be..ea9d66982d40 100644 --- a/drive

[RFC v03 03/15] dmaengine: core: Introduce new, universal API to request a channel

2015-12-02 Thread Peter Ujfalusi
er_fn = edma_filter_fn; } When neither DT or ACPI lookup is available the dma_request_chan() will try to match the requester's device name with the filter_map's list of device names, when a match found it will use the information from the dma_filter_map to get the channel with the dma_get_channel() internal

Re: [RFC v02 02/15] dmaengine: core: Move and merge the code paths using private_candidate

2015-12-01 Thread Peter Ujfalusi
On 11/30/2015 04:42 PM, Andy Shevchenko wrote: > On Mon, Nov 30, 2015 at 3:45 PM, Peter Ujfalusi <peter.ujfal...@ti.com> wrote: >> Channel matching with private_candidate() is used in two paths, the error >> checking is slightly different in them and they are duplicati

Re: [RFC v02 01/15] dmaengine: core: Allow NULL mask pointer in __dma_device_satisfies_mask()

2015-12-01 Thread Peter Ujfalusi
On 11/30/2015 04:35 PM, Andy Shevchenko wrote: > On Mon, Nov 30, 2015 at 3:45 PM, Peter Ujfalusi <peter.ujfal...@ti.com> wrote: >> Treat as true condition the case when the mask is NULL. > > What do you think about setting some default (all "on") mask when ma

Re: [RFC v02 03/15] dmaengine: core: Introduce new, universal API to request a channel

2015-12-01 Thread Peter Ujfalusi
On 11/30/2015 04:09 PM, Arnd Bergmann wrote: > On Monday 30 November 2015 15:45:33 Peter Ujfalusi wrote: >> const char *name); >> struct dma_chan *dma_request_slave_channel(struct device *dev, const char >> *name); >

Re: [RFC v02 03/15] dmaengine: core: Introduce new, universal API to request a channel

2015-12-01 Thread Peter Ujfalusi
On 11/30/2015 04:51 PM, Andy Shevchenko wrote: >> +struct dma_chan *dma_request_chan(struct device *dev, const char *name) >> +{ >> + struct dma_device *device, *_d; >> + struct dma_chan *chan = NULL; >> + >> + /* If device-tree is present get slave info from here */ >> +

Re: [RFC v02 04/15] dmaengine: edma: Add support for DMA filter mapping to slave devices

2015-12-01 Thread Peter Ujfalusi
On 11/30/2015 04:11 PM, Arnd Bergmann wrote: > On Monday 30 November 2015 15:45:34 Peter Ujfalusi wrote: >> @@ -2428,6 +2436,22 @@ bool edma_filter_fn(struct dma_chan *chan, void >> *param) >> } >> EXPORT_SYMBOL(edma_filter_fn); >> >> +static bool ed

Re: [RFC v02 00/15] dmaengine: New 'universal' API for requesting channel

2015-12-01 Thread Peter Ujfalusi
On 11/30/2015 04:18 PM, Arnd Bergmann wrote: > On Monday 30 November 2015 15:45:30 Peter Ujfalusi wrote: >> Changes since RFC v01: >> - dma_request_chan(); lost the mask parameter >> - The new API does not rely on RESOURCE_DMA, instead the dma_filter_map table >&g

Re: [RFC v02 03/15] dmaengine: core: Introduce new, universal API to request a channel

2015-12-01 Thread Peter Ujfalusi
On 11/30/2015 05:51 PM, Tony Lindgren wrote: > Hi, > > * Peter Ujfalusi <peter.ujfal...@ti.com> [151130 05:49]: >> >> For each dmaengine driver an array of DMA device, slave and the parameter >> for the filter function needs to be added: >> >>

Re: [RFC v02 00/15] dmaengine: New 'universal' API for requesting channel

2015-12-01 Thread Peter Ujfalusi
On 11/30/2015 04:32 PM, Andy Shevchenko wrote: >> Andy: I did looked at the unified device properties, but I decided to not to >> use >> it as I don't see it to fit well and most of the legacy board files are using >> resources to specify at least their memory regions so adding the DMA resource

[RFC v02 12/15] ARM: davinci: devices-da8xx: Remove DMA resources for MMC and SPI

2015-11-30 Thread Peter Ujfalusi
The drivers are now converted to not use the DMA resource. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/devices-da8xx.c | 49 --- 1 file changed, 49 deletions(-) diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/ar

[RFC v02 13/15] ARM: davinci: devices: Remove DMA resources for MMC

2015-11-30 Thread Peter Ujfalusi
The driver is converted to not use the DMA resource. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/devices.c | 19 --- 1 file changed, 19 deletions(-) diff --git a/arch/arm/mach-davinci/devices.c b/arch/arm/mach-davinci/devices.c

[RFC v02 15/15] ARM: davinci: dm365: Remove DMA resources for SPI

2015-11-30 Thread Peter Ujfalusi
The driver is converted to not use the DMA resource. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/dm365.c | 8 1 file changed, 8 deletions(-) diff --git a/arch/arm/mach-davinci/dm365.c b/arch/arm/mach-davinci/dm365.c index 3dfcf7c9aa20..fe98e5

[RFC v02 14/15] ARM: davinci: dm355: Remove DMA resources for SPI

2015-11-30 Thread Peter Ujfalusi
The driver is converted to not use the DMA resource. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/dm355.c | 8 1 file changed, 8 deletions(-) diff --git a/arch/arm/mach-davinci/dm355.c b/arch/arm/mach-davinci/dm355.c index dc8d7ccf69f4..7c6ab2

[RFC v02 11/15] spi: davinci: Use dma_request_chan() to requesting DMA channel

2015-11-30 Thread Peter Ujfalusi
With the new dma_request_chan() the clinet driver does not need to look for the DMA resource and it does not need to pass filter_fn anymore. By switching to the new API the davinci_mmc driver can now support deferred probing against DMA. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.

[RFC v02 08/15] ARM: davinci: dm644x: Add dma_filter_map to edma

2015-11-30 Thread Peter Ujfalusi
Provide the dma_filter_map to edma which will allow us to move the drivers to the new, simpler dmaengine API and we can remove the DMA resources also for the devices. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/dm644x.c | 12 1 file chang

[RFC v02 10/15] mmc: davinci_mmc: Use dma_request_chan() to requesting DMA channel

2015-11-30 Thread Peter Ujfalusi
With the new dma_request_chan() the clinet driver does not need to look for the DMA resource and it does not need to pass filter_fn anymore. By switching to the new API the davinci_mmc driver can now support deferred probing against DMA. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.

[RFC v02 09/15] ARM: davinci: dm646x: Add dma_filter_map to edma

2015-11-30 Thread Peter Ujfalusi
Provide the dma_filter_map to edma which will allow us to move the drivers to the new, simpler dmaengine API and we can remove the DMA resources also for the devices. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/dm646x.c | 11 +++ 1 file chang

[RFC v02 07/15] ARM: davinci: dm365: Add dma_filter_map to edma

2015-11-30 Thread Peter Ujfalusi
Provide the dma_filter_map to edma which will allow us to move the drivers to the new, simpler dmaengine API and we can remove the DMA resources also for the devices. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/dm365.c | 22 ++

[RFC v02 04/15] dmaengine: edma: Add support for DMA filter mapping to slave devices

2015-11-30 Thread Peter Ujfalusi
Add support for providing device to filter_fn mapping so client drivers can switch to use the dma_request_chan() API. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 24 include/linux/platform_data/edma.h | 5 + 2

[RFC v02 05/15] ARM: davinci: devices-da8xx: Add dma_filter_map to edma

2015-11-30 Thread Peter Ujfalusi
Provide the dma_filter_map to edma which will allow us to move the drivers to the new, simpler dmaengine API and we can remove the DMA resources also for the devices. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/devices-da8xx.

[RFC v02 06/15] ARM: davinci: dm355: Add dma_filter_map to edma

2015-11-30 Thread Peter Ujfalusi
Provide the dma_filter_map to edma which will allow us to move the drivers to the new, simpler dmaengine API and we can remove the DMA resources also for the devices. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/dm355.c | 20 1 file c

[RFC v02 02/15] dmaengine: core: Move and merge the code paths using private_candidate

2015-11-30 Thread Peter Ujfalusi
-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/dmaengine.c | 81 + 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index 52c3eee48e2e..1249165fb4b2 100644 --- a/drive

[RFC v02 00/15] dmaengine: New 'universal' API for requesting channel

2015-11-30 Thread Peter Ujfalusi
gt;filter_map; ecc->dma_slave.filter_map.mapcnt = info->filtercnt; ecc->dma_slave.filter_map.filter_fn = edma_filter_for_map; } When neither DT or ACPI lookup is available the dma_request_chan() will try to match the requester's device name wi

[RFC v02 03/15] dmaengine: core: Introduce new, universal API to request a channel

2015-11-30 Thread Peter Ujfalusi
gt;filter_map; ecc->dma_slave.filter_map.mapcnt = info->filtercnt; ecc->dma_slave.filter_map.filter_fn = edma_filter_for_map; } When neither DT or ACPI lookup is available the dma_request_chan() will try to match the requester's device name with the

[RFC v02 01/15] dmaengine: core: Allow NULL mask pointer in __dma_device_satisfies_mask()

2015-11-30 Thread Peter Ujfalusi
Treat as true condition the case when the mask is NULL. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/dmaengine.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index daf54a39bcc7..52c3eee48e2e 100644 --- a/d

Re: [RFC 3/6] dmaengine: core: Introduce new, universal API to request a channel

2015-11-27 Thread Peter Ujfalusi
On 11/27/2015 01:00 PM, Arnd Bergmann wrote: > On Friday 27 November 2015 10:29:39 Peter Ujfalusi wrote: >> struct dma_chan *dma_request_chan(struct device *dev, const char *name, >>const dma_cap_mask_t *mask); >> To request a slave channe

[RFC 1/6] dmaengine: core: Allow NULL mask pointer in __dma_device_satisfies_mask()

2015-11-27 Thread Peter Ujfalusi
Treat as true condition the case when the mask is NULL. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/dmaengine.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index daf54a39bcc7..52c3eee48e2e 100644 --- a/d

[RFC 4/6] dmaengine: edma: Add support for DMA filter mapping to slave devices

2015-11-27 Thread Peter Ujfalusi
Add support for providing device to filter_fn mapping so client drivers can switch to use the dma_request_chan() API. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 6 ++ include/linux/platform_data/edma.h | 3 +++ 2 files changed, 9 inse

[RFC 0/6] dmaengine: New 'universal' API for requesting channel

2015-11-27 Thread Peter Ujfalusi
get the channele with the dma_get_channel() internal function. Regards, Peter --- Peter Ujfalusi (6): dmaengine: core: Allow NULL mask pointer in __dma_device_satisfies_mask() dmaengine: core: Move and merge the code paths using private_candidate dmaengine: core: Introduce new, universal API to

[RFC 2/6] dmaengine: core: Move and merge the code paths using private_candidate

2015-11-27 Thread Peter Ujfalusi
-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/dmaengine.c | 81 + 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index 52c3eee48e2e..1249165fb4b2 100644 --- a/drive

[RFC 3/6] dmaengine: core: Introduce new, universal API to request a channel

2015-11-27 Thread Peter Ujfalusi
ester's device name with the filter_map's list of device names, when a match found it will requests the named DMA resource using the requester's pdev and with the needed information available it will try to get the channele with the dma_get_channel() internal function. Signed-off-by: Peter Ujfalusi

[RFC 5/6] ARM: davinci: devices-da8xx: device -> dma instance mapping support

2015-11-27 Thread Peter Ujfalusi
In order to switch the driver to use the new simpler dmaengine API the device mapping for the dma instances needs to be added and also the DMA resources should be named. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/devices-da8xx.

[RFC 6/6] mmc: davinci_mmc: Switch to use the new dmaengine API for requesting channel (NOT FOR MERGE)

2015-11-27 Thread Peter Ujfalusi
With the new dma_request_chan() the clinet driver does not need to look for the DMA resource and it does not need to pass filter_fn anymore. By switching to the new API the davinci_mmc driver can now support deferred probing against DMA. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.

Re: [PATCH v4 0/3] ARM: OMAP2+ McASP(3) support for DRA7xx family

2015-11-23 Thread Peter Ujfalusi
Tony, On 11/12/2015 08:00 PM, Tony Lindgren wrote: > * Peter Ujfalusi <peter.ujfal...@ti.com> [15 23:33]: >> Hi Tony, >> >> Changes since v3: >> - rebased on mainline's HEAD >> - Added Tested-by from Felipe >> - Added Acked-by from Paul for the h

Re: [PATCH 02/13] dmaengine: Introduce dma_request_slave_channel_compat_reason()

2015-11-20 Thread Peter Ujfalusi
On 11/20/2015 02:24 PM, Andy Shevchenko wrote: > On Fri, Nov 20, 2015 at 12:58 PM, Arnd Bergmann <a...@arndb.de> wrote: >> On Friday 20 November 2015 12:25:06 Peter Ujfalusi wrote: >>> On 11/19/2015 01:25 PM, Arnd Bergmann wrote: > >> Another idea would be t

  1   2   3   4   5   6   7   8   9   10   >