[U-Boot] [PATCH v9 0/3] dma: add channels support

Grygorii Strashko
2018-11-30T23:56:32Z

Hi Álvaro,

On 11/28/18 12:17 PM, Álvaro Fernández Rojas wrote:
> In order to add bcm6348-enet support, dma-uclass must be extended to support
> dma channels and reworked to operate like the other dm uclass (clk, reset...).
>
> ===

Thank you for picking this up.
I, unfortunately, will be out unresponsive next few month due to personal reasons,
but hope this will be moved forward eventually.

>
> ===
>
> v9: Separate generic dma channels support from bmips enet support
> v8: Sync with latest u-boot.
> v7: From Grygorii Strashko:
> - copyright fixed as suggested by Tom Rini
> - added "Reviewed-by" tags
> v6: From Grygorii Strashko:
> - added possibility to pass DMA driver/channel's specific data per each
> transfer using additional parameter "metadata" in dma_send/dma_receive() API.
> For example, port number for network packets to be directed to the
> specific port on multi port ethernet controllers.
> - added new dma_prepare_rcv_buf() API which allows to implement zero-copy
> DEV_TO_MEM transfer using DMA streaming channels which is usual case
> for Networking.
> - added dma-uclass test
> - removed unused function dma_get_by_index_platdata()
> - updated comments
> v5: Fix build of ti-edma3.
> v4: No changes
> v3: Introduce changes reported by Simon Glass:
> - Improve dma-uclass.h documentation.
> - Switch to live tree API.
> v2: Introduce changes reported by Vignesh:
> - Respect current dma implementation.
> - Let dma_memcpy find a compatible dma device.
>
> Grygorii Strashko (1):
> test: dma: add dma-uclass test
>
> Álvaro Fernández Rojas (2):
> dma: move dma_ops to dma-uclass.h
> dma: add channels support
>
> arch/sandbox/dts/test.dts | 8 ++
> configs/sandbox_defconfig | 3 +
> drivers/dma/Kconfig | 14 ++
> drivers/dma/Makefile | 1 +
> drivers/dma/dma-uclass.c | 183 +++++++++++++++++++++++++-
> drivers/dma/sandbox-dma-test.c | 282 +++++++++++++++++++++++++++++++++++++++++
> drivers/dma/ti-edma3.c | 2 +-
> include/dma-uclass.h | 128 +++++++++++++++++++
> include/dma.h | 282 +++++++++++++++++++++++++++++++++++++----
> test/dm/Makefile | 1 +
> test/dm/dma.c | 123 ++++++++++++++++++
> 11 files changed, 997 insertions(+), 30 deletions(-)
> create mode 100644 drivers/dma/sandbox-dma-test.c
> create mode 100644 include/dma-uclass.h
> create mode 100644 test/dm/dma.c
>

--
regards,
-grygorii