[PATCH 08/13] dmaengine: edma: Do not allocate memory for edma_rsv_info in case of DT boot

2015-10-14 Thread Peter Ujfalusi
The channel/slot reservation is not supported when booted with DT so there is not need to allocate memory. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c

[PATCH 09/13] dmaengine: edma: Merge the of parsing functions

2015-10-14 Thread Peter Ujfalusi
Instead of nesting functions just merge them since the resulting function is still small and readable. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 24 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/drivers/dma/ed

[PATCH 03/13] dmaengine: edma: Simplify function parameter list for channel operations

2015-10-14 Thread Peter Ujfalusi
the driver. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 396 + 1 file changed, 123 insertions(+), 273 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 6de571f4aa0f..f33a297f870f

[PATCH 02/13] dmaengine: edma: Optimize memcpy operation

2015-10-14 Thread Peter Ujfalusi
the remaining data. According to tests this patch increases the throughput of memcpy from ~3MB/s to 15MB/s Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 90 +- 1 file changed, 69 insertions(+), 21 del

[PATCH 01/13] dmaengine: edma: Remove alignment constraint for memcpy

2015-10-14 Thread Peter Ujfalusi
Despite the claim by the original commit adding the memcpy support, eDMA does not have constraint on the alignment of src, dst or length in increment mode. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 13 ++--- 1 file changed, 6 insertions

[PATCH 00/13] dmaenigne: edma/ti-crossbar: fixes, new bindings

2015-10-14 Thread Peter Ujfalusi
linux-next-wip branch if someone wants to try it out w/o needing to hunt for patches: https://github.com/omap-audio/linux-audio.git peter/linux-next-wip Regards, Peter --- Peter Ujfalusi (13): dmaengine: edma: Remove alignment constraint for memcpy dmaengine: edma: Optimize memcpy operation

[PATCH 10/13] dmaengine: ti-dma-crossbar: Add support for crossbar on AM33xx/AM43xx

2015-10-14 Thread Peter Ujfalusi
line. If different mux is selected, then the selected event is going to be routed to the given eDMA event. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- .../devicetree/bindings/dma/ti-dma-crossbar.txt| 15 +- drivers/dma/ti-dma-crossbar.c

[PATCH 05/13] dmaengine: edma: Merge map_dmach_to_queue into assign_channel_eventq

2015-10-14 Thread Peter Ujfalusi
edma_assign_channel_eventq() is a wrapper around edma_map_dmach_to_queue() We can merge the content of the later so we will have only one function to be used for mapping channels to given eventq Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.

[PATCH 04/13] dmaengine: edma: Correct PaRAM access function names (_parm_ to _param_)

2015-10-14 Thread Peter Ujfalusi
These inline functions are designed to modify parts of the PaRAM in eDMA. Change the names accordingly. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/dma/ed

[PATCH 06/13] dmaengine: edma: Get qDMA channel information from HW also

2015-10-14 Thread Peter Ujfalusi
Query the number of qDMA channels from CCCFG register. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index a02f84c7c3d7..d064fbc47351 100644 --- a/drivers/dma/

Re: [PATCH v4 11/25] ARM/dmaengine: edma: Merge the two drivers under drivers/dma/

2015-10-13 Thread Peter Ujfalusi
On 10/12/2015 07:00 PM, Vinod Koul wrote: > On Thu, Sep 24, 2015 at 01:01:58PM +0300, Peter Ujfalusi wrote: >> Move the code out from arch/arm/common and merge it inside of the dmaengine >> driver. >> This change is done with as minimal change to the code as possible to avoid

Re: [PATCH v4 11/25] ARM/dmaengine: edma: Merge the two drivers under drivers/dma/

2015-10-13 Thread Peter Ujfalusi
On 10/13/2015 11:58 AM, Peter Ujfalusi wrote: > On 10/12/2015 07:00 PM, Vinod Koul wrote: >> On Thu, Sep 24, 2015 at 01:01:58PM +0300, Peter Ujfalusi wrote: >>> Move the code out from arch/arm/common and merge it inside of the dmaengine >>> driver. >>> This c

Re: [PATCH v4 00/25] dmaengine/ARM: Merge the edma drivers into one

2015-10-06 Thread Peter Ujfalusi
Hi On 09/24/2015 01:01 PM, Peter Ujfalusi wrote: > Hi, > > Changes since v3: > - Separated the two (patch 10/11 in v2 patch 10 in v3) patch which got > squashed > by accident for v3 > - Added Tony's Acked-by to patch 11 (for mach-oamp2 part) Gentle ping on this

Re: [PATCH v4 00/25] dmaengine/ARM: Merge the edma drivers into one

2015-10-06 Thread Peter Ujfalusi
On 10/06/2015 10:30 AM, Koul, Vinod wrote: > On Tue, 2015-10-06 at 09:15 +0300, Peter Ujfalusi wrote: >> Hi >> >> On 09/24/2015 01:01 PM, Peter Ujfalusi wrote: >>> Hi, >>> >>> Changes since v3: >>> - Separated the two (patch

Re: [PATCH 01/11 RESEND] ARM: OMAP: DRA7: hwmod: Add data for McASP3

2015-10-02 Thread Peter Ujfalusi
On 10/02/2015 02:55 PM, Peter Ujfalusi wrote: > On 10/02/2015 02:22 PM, Peter Ujfalusi wrote: >> Paul, >> >> On 10/02/2015 12:07 PM, Paul Walmsley wrote: >>> Hello Péter, >>> >>> On Wed, 30 Sep 2015, Peter Ujfalusi wrote: >

Re: [PATCH 01/11 RESEND] ARM: OMAP: DRA7: hwmod: Add data for McASP3

2015-10-02 Thread Peter Ujfalusi
On 10/02/2015 02:22 PM, Peter Ujfalusi wrote: > Paul, > > On 10/02/2015 12:07 PM, Paul Walmsley wrote: >> Hello Péter, >> >> On Wed, 30 Sep 2015, Peter Ujfalusi wrote: >> >>> On 09/27/2015 10:02 AM, Paul Walmsley wrote: >>>>> /* >>

Re: [PATCH 01/11 RESEND] ARM: OMAP: DRA7: hwmod: Add data for McASP3

2015-10-02 Thread Peter Ujfalusi
Paul, On 10/02/2015 12:07 PM, Paul Walmsley wrote: > Hello Péter, > > On Wed, 30 Sep 2015, Peter Ujfalusi wrote: > >> On 09/27/2015 10:02 AM, Paul Walmsley wrote: >>>> /* >>>> + * 'mcasp' class >>>> + * >>>> + *

Re: [PATCH 01/11 RESEND] ARM: OMAP: DRA7: hwmod: Add data for McASP3

2015-09-30 Thread Peter Ujfalusi
Paul, On 09/27/2015 10:02 AM, Paul Walmsley wrote: >> /* >> + * 'mcasp' class >> + * >> + */ >> +static struct omap_hwmod_class_sysconfig dra7xx_mcasp_sysc = { >> +.sysc_offs = 0x0004, >> +.sysc_flags = SYSC_HAS_SIDLEMODE, >> +.idlemodes = (SIDLE_FORCE | SIDLE_NO |

Re: [PATCH 01/11 RESEND] ARM: OMAP: DRA7: hwmod: Add data for McASP3

2015-09-30 Thread Peter Ujfalusi
On 09/30/2015 04:00 PM, Tero Kristo wrote: +/* l4_per2 -> mcasp3 */ +static struct omap_hwmod_ocp_if dra7xx_l4_per2__mcasp3 = { +.master= _l4_per2_hwmod, +.slave= _mcasp3_hwmod, >>> >>> So this is the low-speed control/register access port, where the MPU

Re: [PATCH 01/11 RESEND] ARM: OMAP: DRA7: hwmod: Add data for McASP3

2015-09-25 Thread Peter Ujfalusi
Paul, On 09/15/2015 05:10 PM, Peter Ujfalusi wrote: > McASP3 is used by default on DRA7x based boards for audio. Can you take a look at this patch? It would be great to have this one reviewed so the audio support for the dra7 family could be applied by Tony. Thanks, Péter > Sign

Re: [PATCH] clk: ti: clk-7xx: Remove hardwired ABE clock configuration

2015-09-25 Thread Peter Ujfalusi
Tero, On 09/16/2015 09:42 AM, Tero Kristo wrote: > On 09/14/2015 11:52 AM, Peter Ujfalusi wrote: >> Hi Tero, >> >> On 08/24/2015 10:35 AM, Peter Ujfalusi wrote: >>> The ABE related clocks should be configured via DT and not have it wired >>> inside o

Re: [PATCH] dmaengine: omap-dma: Enable packed accesses for cyclic transfers

2015-09-25 Thread Peter Ujfalusi
Vinod, On 09/14/2015 03:31 PM, Peter Ujfalusi wrote: > From: Misael Lopez Cruz <misael.lo...@ti.com> > > The L3 throughput can be higher than expected when packed access > is not enabled. The ratio depends on the number of bytes in a > transaction and the EMIF interface

Re: [PATCH v3 10/24] ARM: davinci: Add set dma_mask to eDMA devices

2015-09-24 Thread Peter Ujfalusi
On 09/23/2015 08:25 PM, Tony Lindgren wrote: > * Peter Ujfalusi <peter.ujfal...@ti.com> [150922 03:01]: >> The upcoming change to merge the arch/arm/common/edma.c into >> drivers/dma/edma.c will need this change when booting daVinci devices in >> no DT mode. >>

[PATCH v4 01/25] ARM: common: edma: Fix channel parameter for irq callbacks

2015-09-24 Thread Peter Ujfalusi
In case when the interrupt happened for the second eDMA the channel number was incorrectly passed to the client driver. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> CC: <sta...@vger.kernel.org> --- arch/arm/common/edma.c | 6 -- 1 file changed, 4 insertions(+), 2 deleti

[PATCH v4 00/25] dmaengine/ARM: Merge the edma drivers into one

2015-09-24 Thread Peter Ujfalusi
this series could go via the dmaengine tree. Changes are trivial under arch/arm/ Regards, Peter --- Peter Ujfalusi (25): ARM: common: edma: Fix channel parameter for irq callbacks ARM: common: edma: Remove unused functions dmaengine: edma: Simplify and optimize the edma_execute path ARM: davinci

[PATCH v4 05/25] ARM/dmaengine: edma: Move of_dma_controller_register to the dmaengine driver

2015-09-24 Thread Peter Ujfalusi
. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/common/edma.c | 10 -- drivers/dma/edma.c | 16 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c index 7c2fe527e53b..d82fceda13a3

[PATCH v4 03/25] dmaengine: edma: Simplify and optimize the edma_execute path

2015-09-24 Thread Peter Ujfalusi
-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 76 +- 1 file changed, 29 insertions(+), 47 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 3e5d4f193005..19fa49d6f555 100644 --- a/drivers/dma/

[PATCH v4 17/25] dmaengine: edma: Use the edma_write_slot instead open coded memcpy_toio

2015-09-24 Thread Peter Ujfalusi
edma_write_slot() is for writing an entire paRAM slot. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index fe8cde21b497..d759abc80bef 100644 --- a/d

[PATCH v4 16/25] dmaengine: edma: Use dev_dbg instead pr_debug

2015-09-24 Thread Peter Ujfalusi
We have access to dev, so it is better to use the dev_dbg for debug prints. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c

[PATCH v4 15/25] dmaengine: edma: Cleanup regarding the use of dev around the code

2015-09-24 Thread Peter Ujfalusi
Be consistent and do not mix the use of dev, >dev, etc in the functions. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edm

[PATCH v4 18/25] dmaengine: edma: Print warning when linking slots from different eDMA

2015-09-24 Thread Peter Ujfalusi
Warning message in case of linking between paRAM slots in different eDMA controllers. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index d759abc80bef..b01029

[PATCH v4 08/25] ARM/dmaengine: edma: Remove limitation on the number of eDMA controllers

2015-09-24 Thread Peter Ujfalusi
Since the driver stack no longer depends on lookup with id number in a global array of pointers, the limitation for the number of eDMAs are no longer needed. We can handle as many eDMAs in legacy and DT boot as we have memory for them to allocate the needed structures. Signed-off-by: Peter

[PATCH v4 07/25] ARM/dmaengine: edma: Public API to use private struct pointer

2015-09-24 Thread Peter Ujfalusi
Instead of relying on indexes pointing to edma private date in the global pointer array, pass the private data pointer via the public API. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/common/edma.c | 305 ++--- drivers/dma/

[PATCH v4 02/25] ARM: common: edma: Remove unused functions

2015-09-24 Thread Peter Ujfalusi
We no longer have users for these functions so they can be removed. Remove also unused enums from the header file. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/common/edma.c | 376 - include/linux/platform_data/edma.h

[PATCH v4 12/25] dmaengine: edma: Allocate memory dynamically for bitmaps and structures

2015-09-24 Thread Peter Ujfalusi
Instead of using defines to specify the size of different arrays and bitmaps, allocate the memory for them based on the information we get from the HW itself. Since these defines are set based on the worst case, there are devices where they are not valid. Signed-off-by: Peter Ujfalusi

[PATCH v4 04/25] ARM: davinci/common: Convert edma driver to handle one eDMA instance per driver

2015-09-24 Thread Peter Ujfalusi
was not flexible enough and prevents the upcoming work. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/common/edma.c| 356 +++--- arch/arm/mach-davinci/devices-da8xx.c | 110 --- arch/arm/mach-davinci/dm355.c | 21 +- arch/ar

[PATCH v4 14/25] dmaengine: edma: Use devm_kcalloc when possible

2015-09-24 Thread Peter Ujfalusi
When allocating a memory for number of items it is better (looks better) to use devm_kcalloc. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c

[PATCH v4 22/25] dmaengine: edma: Simplify and optimize ccerr interrupt handler

2015-09-24 Thread Peter Ujfalusi
No need to run through the bits in QEMR and CCERR events since they will not trigger any action, so just clearing the errors there is fine. In case of the missed event the loop can be optimized so we spend less time to handle the event. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.

[PATCH v4 20/25] dmaengine: edma: Simplify the interrupt handling

2015-09-24 Thread Peter Ujfalusi
With the merger of the arch/arm/common/edma.c code into the dmaengine driver, there is no longer need to have per channel callback/data storage for interrupt events. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c

[PATCH v4 21/25] dmaengine: edma: Move the pending error check into helper function

2015-09-24 Thread Peter Ujfalusi
In the ccerr interrupt handler the code checks for pending errors in the error status registers in two different places. Move the check out to a helper function. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 20 1 file changed, 12 inse

[PATCH v4 11/25] ARM/dmaengine: edma: Merge the two drivers under drivers/dma/

2015-09-24 Thread Peter Ujfalusi
Move the code out from arch/arm/common and merge it inside of the dmaengine driver. This change is done with as minimal change to the code as possible to avoid any possibilities to introducing regression. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> Acked-by: Tony Lindg

[PATCH v4 25/25] dmaengine: edma: Dynamic paRAM slot handling if HW supports it

2015-09-24 Thread Peter Ujfalusi
If the eDMA3 has support for channel paRAM slot mapping we can utilize it to allocate slots on demand and save precious slots for real transfers. On am335x the eDMA has 64 channels which means we can unlock 64 paRAM slots out from the available 256. Signed-off-by: Peter Ujfalusi <peter.uj

[PATCH v4 19/25] dmaengine: edma: Consolidate the comments for functions

2015-09-24 Thread Peter Ujfalusi
Remove or rewrite the comments for the internal functions. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 86 +++--- 1 file changed, 11 insertions(+), 75 deletions(-) diff --git a/drivers/dma/edma.c b/drive

[PATCH v4 24/25] dmaengine: edma: Rename bitfields for slot and channel usage tracking

2015-09-24 Thread Peter Ujfalusi
The names chosen for the bitfields were quite confusing and given no real information on what they are used for... edma_inuse -> slot_inuse: tracks the slot usage/availability edma_unused -> channel_unused: tracks the channel usage/availability Signed-off-by: Peter Ujfalusi <pe

[PATCH v4 13/25] dmaengine: edma: Parameter alignment and long line fixes

2015-09-24 Thread Peter Ujfalusi
Makes the code a bit more readable. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 84 -- 1 file changed, 44 insertions(+), 40 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 49158a

[PATCH v4 23/25] dmaengine: edma: Read channel mapping support only once from HW

2015-09-24 Thread Peter Ujfalusi
Instead of directly reading it from CCCFG register take the information out once when we set up the configuration from the HW. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drive

[PATCH v4 10/25] ARM: davinci: Add dma_mask to eDMA devices

2015-09-24 Thread Peter Ujfalusi
The upcoming change to merge the arch/arm/common/edma.c into drivers/dma/edma.c will need this change when booting daVinci devices in no DT mode. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/devices-da8xx.c | 2 ++ arch/arm/mach-davinci/dm355.c

[PATCH v4 06/25] ARM: common: edma: Internal API to use pointer to 'struct edma'

2015-09-24 Thread Peter Ujfalusi
Merge the iomem into the 'struct edma' and change the internal (static) functions to use pointer to the edma_cc instead of the ctlr number. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/common/edma.c | 400 - 1 file c

[PATCH v4 09/25] ARM: davinci: Use platform_device_register_full() to create pdev for eDMA

2015-09-24 Thread Peter Ujfalusi
Convert the eDMA platform device creation to use struct platform_device_info XX __initconst and platform_device_register_full() This will allow us to cleanly specify the dma_mask for the devices in an upcoming patch. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/ar

Re: [PATCH] clk: ti: Fix FAPLL udelay in clk_enable with clk_prepare

2015-09-23 Thread Peter Ujfalusi
Tony, On 09/23/2015 12:23 AM, Tony Lindgren wrote: > As recently pointed out (again) by Thomas and Russell, we must not > wait in in clk_enable. The wait for PLL to lock needs to happen > in clk_prepare instead. > > It seems this is a common copy paste error with the PLL drivers, > and similar

[PATCH v3 19/24] dmaengine: edma: Simplify the interrupt handling

2015-09-22 Thread Peter Ujfalusi
With the merger of the arch/arm/common/edma.c code into the dmaengine driver, there is no longer need to have per channel callback/data storage for interrupt events. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c

[PATCH v3 08/24] ARM/dmaengine: edma: Remove limitation on the number of eDMA controllers

2015-09-22 Thread Peter Ujfalusi
Since the driver stack no longer depends on lookup with id number in a global array of pointers, the limitation for the number of eDMAs are no longer needed. We can handle as many eDMAs in legacy and DT boot as we have memory for them to allocate the needed structures. Signed-off-by: Peter

[PATCH v3 04/24] ARM: davinci/common: Convert edma driver to handle one eDMA instance per driver

2015-09-22 Thread Peter Ujfalusi
was not flexible enough and prevents the upcoming work. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/common/edma.c| 356 +++--- arch/arm/mach-davinci/devices-da8xx.c | 110 --- arch/arm/mach-davinci/dm355.c | 21 +- arch/ar

[PATCH v3 09/24] ARM: davinci: Use platform_device_register_full() to create pdev for eDMA

2015-09-22 Thread Peter Ujfalusi
Convert the eDMA platform device creation to use struct platform_device_info XX __initconst and platform_device_register_full() This will allow us to cleanly specify the dma_mask for the devices in an upcoming patch. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/ar

[PATCH v3 12/24] dmaengine: edma: Parameter alignment and long line fixes

2015-09-22 Thread Peter Ujfalusi
Makes the code a bit more readable. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 84 -- 1 file changed, 44 insertions(+), 40 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 49158a

[PATCH v3 11/24] dmaengine: edma: Allocate memory dynamically for bitmaps and structures

2015-09-22 Thread Peter Ujfalusi
Instead of using defines to specify the size of different arrays and bitmaps, allocate the memory for them based on the information we get from the HW itself. Since these defines are set based on the worst case, there are devices where they are not valid. Signed-off-by: Peter Ujfalusi

[PATCH v3 06/24] ARM: common: edma: Internal API to use pointer to 'struct edma'

2015-09-22 Thread Peter Ujfalusi
Merge the iomem into the 'struct edma' and change the internal (static) functions to use pointer to the edma_cc instead of the ctlr number. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/common/edma.c | 400 - 1 file c

[PATCH v3 14/24] dmaengine: edma: Cleanup regarding the use of dev around the code

2015-09-22 Thread Peter Ujfalusi
Be consistent and do not mix the use of dev, >dev, etc in the functions. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edm

[PATCH v3 13/24] dmaengine: edma: Use devm_kcalloc when possible

2015-09-22 Thread Peter Ujfalusi
When allocating a memory for number of items it is better (looks better) to use devm_kcalloc. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c

[PATCH v3 16/24] dmaengine: edma: Use the edma_write_slot instead open coded memcpy_toio

2015-09-22 Thread Peter Ujfalusi
edma_write_slot() is for writing an entire paRAM slot. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index fe8cde21b497..d759abc80bef 100644 --- a/d

[PATCH v3 15/24] dmaengine: edma: Use dev_dbg instead pr_debug

2015-09-22 Thread Peter Ujfalusi
We have access to dev, so it is better to use the dev_dbg for debug prints. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c

[PATCH v3 07/24] ARM/dmaengine: edma: Public API to use private struct pointer

2015-09-22 Thread Peter Ujfalusi
Instead of relying on indexes pointing to edma private date in the global pointer array, pass the private data pointer via the public API. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/common/edma.c | 305 ++--- drivers/dma/

[PATCH v3 17/24] dmaengine: edma: Print warning when linking slots from different eDMA

2015-09-22 Thread Peter Ujfalusi
Warning message in case of linking between paRAM slots in different eDMA controllers. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index d759abc80bef..b01029

[PATCH v3 10/24] ARM: davinci: Add set dma_mask to eDMA devices

2015-09-22 Thread Peter Ujfalusi
The upcoming change to merge the arch/arm/common/edma.c into drivers/dma/edma.c will need this change when booting daVinci devices in no DT mode. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/Kconfig |1 - arch/arm/common/Kconfig

[PATCH v3 22/24] dmaengine: edma: Read channel mapping support only once from HW

2015-09-22 Thread Peter Ujfalusi
Instead of directly reading it from CCCFG register take the information out once when we set up the configuration from the HW. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drive

[PATCH v3 20/24] dmaengine: edma: Move the pending error check into helper function

2015-09-22 Thread Peter Ujfalusi
In the ccerr interrupt handler the code checks for pending errors in the error status registers in two different places. Move the check out to a helper function. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 20 1 file changed, 12 inse

[PATCH v3 18/24] dmaengine: edma: Consolidate the comments for functions

2015-09-22 Thread Peter Ujfalusi
Remove or rewrite the comments for the internal functions. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 86 +++--- 1 file changed, 11 insertions(+), 75 deletions(-) diff --git a/drivers/dma/edma.c b/drive

[PATCH v3 23/24] dmaengine: edma: Rename bitfields for slot and channel usage tracking

2015-09-22 Thread Peter Ujfalusi
The names chosen for the bitfields were quite confusing and given no real information on what they are used for... edma_inuse -> slot_inuse: tracks the slot usage/availability edma_unused -> channel_unused: tracks the channel usage/availability Signed-off-by: Peter Ujfalusi <pe

[PATCH v3 21/24] dmaengine: edma: Simplify and optimize ccerr interrupt handler

2015-09-22 Thread Peter Ujfalusi
No need to run through the bits in QEMR and CCERR events since they will not trigger any action, so just clearing the errors there is fine. In case of the missed event the loop can be optimized so we spend less time to handle the event. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.

[PATCH v3 00/24] dmaengine/ARM: Merge the edma drivers into one

2015-09-22 Thread Peter Ujfalusi
instances in legacy mode to make sure the second instance is handled correctly. am335x-evmsk - DT boot I think this series could go via the dmaengine tree. Changes are trivial under arch/arm/ Regards, Peter --- Peter Ujfalusi (24): ARM: common: edma: Fix channel parameter for irq callbacks

[PATCH v3 03/24] dmaengine: edma: Simplify and optimize the edma_execute path

2015-09-22 Thread Peter Ujfalusi
-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 76 +- 1 file changed, 29 insertions(+), 47 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 3e5d4f193005..19fa49d6f555 100644 --- a/drivers/dma/

[PATCH v3 02/24] ARM: common: edma: Remove unused functions

2015-09-22 Thread Peter Ujfalusi
We no longer have users for these functions so they can be removed. Remove also unused enums from the header file. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/common/edma.c | 376 - include/linux/platform_data/edma.h

[PATCH v3 05/24] ARM/dmaengine: edma: Move of_dma_controller_register to the dmaengine driver

2015-09-22 Thread Peter Ujfalusi
. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/common/edma.c | 10 -- drivers/dma/edma.c | 16 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c index 7c2fe527e53b..d82fceda13a3

[PATCH v3 01/24] ARM: common: edma: Fix channel parameter for irq callbacks

2015-09-22 Thread Peter Ujfalusi
In case when the interrupt happened for the second eDMA the channel number was incorrectly passed to the client driver. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> CC: <sta...@vger.kernel.org> --- arch/arm/common/edma.c | 6 -- 1 file changed, 4 insertions(+), 2 deleti

[PATCH v3 24/24] dmaengine: edma: Dynamic paRAM slot handling if HW supports it

2015-09-22 Thread Peter Ujfalusi
If the eDMA3 has support for channel paRAM slot mapping we can utilize it to allocate slots on demand and save precious slots for real transfers. On am335x the eDMA has 64 channels which means we can unlock 64 paRAM slots out from the available 256. Signed-off-by: Peter Ujfalusi <peter.uj

Re: [PATCH 1/2] mfd: twl6040: Fix deferred probe handling for clk32k

2015-09-21 Thread Peter Ujfalusi
ly used by twl6040 will be off as well. The proper solution would be to add clock handling to the WLAN driver stack. Otherwise: Acked-by: Peter Ujfalusi <peter.ujfal...@ti.com> > Fixes: 68bab8662f49 ("mfd: twl6040: Optional clk32k clock handling") > Cc: Benoit Cousson <

Re: [PATCH v2 04/23] ARM: davinci/common: Convert edma driver to handle one eDMA instance per driver

2015-09-18 Thread Peter Ujfalusi
On 09/11/2015 03:27 PM, Peter Ujfalusi wrote: > + if (irq >= 0) { > + irq_name = devm_kasprintf(dev, GFP_KERNEL, "%s_ccint\n", The '\n' should not be in the format string. > + dev_name(dev)); > + ret =

Re: [PATCH v2 11/23] ARM/dmaengine: edma: Merge the two drivers under drivers/dmaengine

2015-09-15 Thread Peter Ujfalusi
On 09/14/2015 07:12 PM, Tony Lindgren wrote: > * Peter Ujfalusi <peter.ujfal...@ti.com> [150911 05:35]: >> Move the code out from arch/arm/common and merge it inside of the dmaengine >> driver. >> This change is done with as minimal change to the code as possible to

[PATCH 01/11 RESEND] ARM: OMAP: DRA7: hwmod: Add data for McASP3

2015-09-15 Thread Peter Ujfalusi
McASP3 is used by default on DRA7x based boards for audio. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- Hi Paul, this patch is part of my earlier series and as Tony suggested I'll resend the hwmod patch for you to review since I missed you from the TO in the series. The or

[PATCH] dmaengine: omap-dma: Enable packed accesses for cyclic transfers

2015-09-14 Thread Peter Ujfalusi
EM_TO_DEV and in dest for DEV_TO_MEM, as they use post-increment mode which supports packed accesses. Peter Ujfalusi: >From the TRM regarding to this: "NOTE: Except in the constant addressing mode, the source or destination must be specified as packed for burst transactions to occur." So

Re: [PATCH 00/11] ARM: OMAP/DTS: dra7/72-evm/beagle-x15: Audio support

2015-09-14 Thread Peter Ujfalusi
Hi Tony, On 08/24/2015 10:19 AM, Peter Ujfalusi wrote: > Hi, > > this series will enable analog audio (via onboard aic310x codec) for dra7-evm, > dra72-evm and am57xx-beagle-x15 boards. > In these board McASP3 is connected to the codec and for the McASP3 we needed > to >

Re: [PATCH] clk: ti: clk-7xx: Remove hardwired ABE clock configuration

2015-09-14 Thread Peter Ujfalusi
Hi Tero, On 08/24/2015 10:35 AM, Peter Ujfalusi wrote: > The ABE related clocks should be configured via DT and not have it wired > inside of the kernel. can you take a look at this patch? It will not cause any regression since we do not have audio support mainline and the pending serie

Re: [PATCH RFC 1/5] ASoC: davinci-mcasp: Set .symmetric_rates = 1 in snd_soc_dai_driver

2015-09-11 Thread Peter Ujfalusi
On 09/09/2015 09:27 PM, Jyri Sarha wrote: > The TX and RX direction share the same bit clock and frame sync, so > the samplerate must be the same to both directions. Acked-by: Peter Ujfalusi <peter.ujfal...@ti.com> > Signed-off-by: Jyri Sarha <jsa...@ti.com> > --- >

[PATCH v2 19/23] dmaengine: edma: Consolidate the comments for functions

2015-09-11 Thread Peter Ujfalusi
Remove or rewrite the comments for the internal functions. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 86 +++--- 1 file changed, 11 insertions(+), 75 deletions(-) diff --git a/drivers/dma/edma.c b/drive

[PATCH v2 11/23] ARM/dmaengine: edma: Merge the two drivers under drivers/dmaengine

2015-09-11 Thread Peter Ujfalusi
Move the code out from arch/arm/common and merge it inside of the dmaengine driver. This change is done with as minimal change to the code as possible to avoid any possibilities to introducing regression. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/K

[PATCH v2 18/23] dmaengine: edma: Print warning when linking slots from different eDMA

2015-09-11 Thread Peter Ujfalusi
Warning message in case of linking between paRAM slots in different eDMA controllers. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index fcd612fbf00d..5dd0cd

[PATCH v2 16/23] dmaengine: edma: Use dev_dbg instead pr_debug

2015-09-11 Thread Peter Ujfalusi
We have access to dev, so it is better to use the dev_dbg for debug prints. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c

[PATCH v2 02/23] ARM: common: edma: Remove unused functions

2015-09-11 Thread Peter Ujfalusi
We no longer have users for these functions so they can be removed. Remove also unused enums from the header file. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/common/edma.c | 376 - include/linux/platform_data/edma.h

[PATCH v2 03/23] dmaengine: edma: Simplify and optimize the edma_execute path

2015-09-11 Thread Peter Ujfalusi
-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 76 +- 1 file changed, 29 insertions(+), 47 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 3e5d4f193005..19fa49d6f555 100644 --- a/drivers/dma/

[PATCH v2 07/23] ARM/dmaengine: edma: Public API to use private struct pointer

2015-09-11 Thread Peter Ujfalusi
Instead of relying on indexes pointing to edma private date in the global pointer array, pass the private data pointer via the public API. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/common/edma.c | 305 ++--- drivers/dma/

[PATCH v2 13/23] dmaengine: edma: Parameter alignment and long line fixes

2015-09-11 Thread Peter Ujfalusi
Makes the code a bit more readable. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 84 -- 1 file changed, 44 insertions(+), 40 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index a08ca0

[PATCH v2 15/23] dmaengine: edma: Cleanup regarding the use of dev around the code

2015-09-11 Thread Peter Ujfalusi
Be consistent and do not mix the use of dev, >dev, etc in the functions. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edm

[PATCH v2 12/23] dmaengine: edma: Allocate memory dynamically for bitmaps and structures

2015-09-11 Thread Peter Ujfalusi
Instead of using defines to specify the size of different arrays and bitmaps, allocate the memory for them based on the information we get from the HW itself. Since these defines are set based on the worst case, there are devices where they are not valid. Signed-off-by: Peter Ujfalusi

[PATCH v2 04/23] ARM: davinci/common: Convert edma driver to handle one eDMA instance per driver

2015-09-11 Thread Peter Ujfalusi
was not flexible enough and prevents the upcoming work. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/common/edma.c| 357 +++--- arch/arm/mach-davinci/devices-da8xx.c | 110 --- arch/arm/mach-davinci/dm355.c | 21 +- arch/ar

[PATCH v2 14/23] dmaengine: edma: Use devm_kcalloc when possible

2015-09-11 Thread Peter Ujfalusi
When allocating a memory for number of items it is better (looks better) to use devm_kcalloc. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c

[PATCH v2 06/23] ARM: common: edma: Internal API to use pointer to 'struct edma'

2015-09-11 Thread Peter Ujfalusi
Merge the iomem into the 'struct edma' and change the internal (static) functions to use pointer to the edma_cc instead of the ctlr number. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/common/edma.c | 400 - 1 file c

[PATCH v2 05/23] ARM/dmaengine: edma: Move of_dma_controller_register to the dmaengine driver

2015-09-11 Thread Peter Ujfalusi
. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/common/edma.c | 10 -- drivers/dma/edma.c | 16 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c index 72fce68a959f..dc960de1a95f

[PATCH v2 10/23] ARM: davinci: Add set dma_mask to eDMA devices

2015-09-11 Thread Peter Ujfalusi
The upcoming change to merge the arch/arm/common/edma.c into drivers/dma/edma.c will need this change when booting daVinci devices in no DT mode. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- arch/arm/mach-davinci/devices-da8xx.c | 2 ++ arch/arm/mach-davinci/dm355.c

[PATCH v2 08/23] ARM/dmaengine: edma: Remove limitation on the number of eDMA controllers

2015-09-11 Thread Peter Ujfalusi
Since the driver stack no longer depends on lookup with id number in a global array of pointers, the limitation for the number of eDMAs are no longer needed. We can handle as many eDMAs in legacy and DT boot as we have memory for them to allocate the needed structures. Signed-off-by: Peter

[PATCH v2 17/23] dmaengine: edma: Use the edma_write_slot instead open coded memcpy_toio

2015-09-11 Thread Peter Ujfalusi
edma_write_slot() is for writing an entire paRAM slot. Signed-off-by: Peter Ujfalusi <peter.ujfal...@ti.com> --- drivers/dma/edma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index ed67206626e9..fcd612fbf00d 100644 --- a/d

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