Skip to content

dmaengine: Add Loongson Multi-Channel DMA controller support

Binbin Zhou dmaengine linux-devicetree linux-mips loongarch 4 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 3 repliesApplied
  2. v36 patches 8 repliesSuperseded
  3. v24 patches 11 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches8 repliesSuperseded

Changes in v4 from the cover letter

- Rebase on dmaengine/next tree;
- Add Reviewed-by tags from Frank and Rob, thanks;

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/6dmaengine: loongson: New directory for Loongson DMA controllers driversMAINTAINERS drivers/dma/Kconfig drivers/dma/Makefile +4 more+42 -301 reply
2/6dmaengine: loongson: loongson2-apb: Convert to dmaenginem_async_device_register()drivers/dma/loongson/loongson2-apb-dma.c+2 -50 replies
3/6dmaengine: loongson: loongson2-apb: Convert to devm_clk_get_enabled()drivers/dma/loongson/loongson2-apb-dma.c+5 -170 replies
4/6dmaengine: loongson: loongson2-apb: Simplify locking with guard() and scoped_guard()drivers/dma/loongson/loongson2-apb-dma.c+29 -330 replies
5/6dt-bindings: dmaengine: Add Loongson Multi-Channel DMA controllerDocumentation/devicetree/bindings/dma/loongson,ls2k0300-dma.yaml MAINTAINERS+83 -10 replies
6/6dmaengine: loongson: New driver for the Loongson Multi-Channel DMA controllerMAINTAINERS drivers/dma/loongson/Kconfig drivers/dma/loongson/Makefile +1 more+743 -00 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFrank LiRob Herring (Arm)Keguang ZhangHuacai Chen
SeriesR-b
1/6R-b R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/6] dmaengine: Add Loongson Multi-Channel DMA controller support

Hi all:

This patchset introduces the Loongson multi-channel DMA controller, which is present in the Loongson-2K0300 and Loongson-2K3000 processors.

It is a multi-channel controller that enables data transfers from memory to memory, device to memory, and memory to device, as well as channel prioritization configurable through the channel configuration registers.

Additionally, since multiple distinct types of DMA controllers exist on the Loongson platform, I have attempted to consolidate all Loongson DMA drivers into a new directory named Loongson for easier management.

Thanks.
Binbin

===========
V4:
- Rebase on dmaengine/next tree;
- Add Reviewed-by tags from Frank and Rob, thanks;

patch(1/6):
- Add depends on restrictions.

patch(6/6):
- Move loongson2_cmc_dma_config{..} close to its users.

Link to V3:
https://lore.kernel.org/dmaengine/[email protected]/

V3:
- Rebase on dmaengine/next tree;

patch(1/6):
- Keep alphabet order;

patch(2/6):
- Add Reviewed-by tag from Frank, thanks;

patch(3/6)/(4/6):
- New patches, format loongson2-apb-dma driver code;

patch(5/6):
- Add description for interrupts property;

patch(6/6):
- Use ffs() helper make the code cleaner;
- Refact loongson2_cmc_dma_chan_irq();
- Simplify locking with guard() and scoped_guard();
- kzalloc()->kzalloc_flex().

Link to V2:
https://lore.kernel.org/all/[email protected]/

V2:
patch(1/4):
- Update loongson1-apb-dma.c entry in MAINTAINERS.

patch(2/4):
- New patch, use dmaenginem_async_device_register() helper.

patch(3/4):
- additionalProperties: false replaced by
unevaluatedProperties: false.

patch(4/4):
- Rename filename as loongson2-apb-cmc-dma.c;
- Rename Kconfig item as LOONGSON2_APB_CMC_DMA;
- Rename the variable prefix as loongson2_cmc_dma;
- Use dmaenginem_async_device_register() helper;
- Drop 'dma_' prefix in struct loongson2_mdma_chan_reg;
- Use struct_size();

Link to V1:
https://lore.kernel.org/all/[email protected]/

Binbin Zhou (6):
dmaengine: loongson: New directory for Loongson DMA controllers
drivers
dmaengine: loongson: loongson2-apb: Convert to
dmaenginem_async_device_register()
dmaengine: loongson: loongson2-apb: Convert to devm_clk_get_enabled()
dmaengine: loongson: loongson2-apb: Simplify locking with guard() and
scoped_guard()
dt-bindings: dmaengine: Add Loongson Multi-Channel DMA controller
dmaengine: loongson: New driver for the Loongson Multi-Channel DMA
controller

 .../bindings/dma/loongson,ls2k0300-dma.yaml   |  81 ++
 MAINTAINERS                                   |   7 +-
 drivers/dma/Kconfig                           |  25 +-
 drivers/dma/Makefile                          |   3 +-
 drivers/dma/loongson/Kconfig                  |  41 +
 drivers/dma/loongson/Makefile                 |   4 +
 .../dma/{ => loongson}/loongson1-apb-dma.c    |   4 +-
 drivers/dma/loongson/loongson2-apb-cmc-dma.c  | 730 ++++++++++++++++++
 .../dma/{ => loongson}/loongson2-apb-dma.c    |  93 +--
 9 files changed, 903 insertions(+), 85 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/dma/loongson,ls2k0300-dma.yaml
 create mode 100644 drivers/dma/loongson/Kconfig
 create mode 100644 drivers/dma/loongson/Makefile
 rename drivers/dma/{ => loongson}/loongson1-apb-dma.c (99%)
 create mode 100644 drivers/dma/loongson/loongson2-apb-cmc-dma.c
 rename drivers/dma/{ => loongson}/loongson2-apb-dma.c (91%)

base-commit: c8e9b1d9febc83ee94944695a07cfd40a1b29743

Signature · 1 line
2.52.0