DMA Engine development
 help / color / mirror / Atom feed
* [PATCH v3 0/7] dmaengine: Manage OF DMA routers and disable STM32 unbind
@ 2026-12-04 12:16 Tian Xuechen
  2026-12-04 12:16 ` [PATCH v3 1/7] dmaengine: of: Add managed DMA router registration Tian Xuechen
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Tian Xuechen @ 2026-12-04 12:16 UTC (permalink / raw)
  To: vkoul; +Cc: Frank.Li, dmaengine, amelie.delaunay, vz, vireshk, vigneshr

Add devm_of_dma_router_register() and convert the LPC18xx, LPC32xx,
RZ/N1, STM32 DMAMUX and TI DMA crossbar drivers. On device detach the
helper withdraws the router entry before devres frees its backing
data. The TI conversion covers both probe paths.

Following Amelie's feedback on the STM32 series, disable manual sysfs
bind and unbind on the built-in STM32 DMAMUX, DMA and MDMA drivers in
a separate patch. The flag also opts these drivers out of the driver
core's debug probe/remove test. The DMAMUX conversion keeps the existing
probe error unwind for runtime PM and clocks.

Cross-compiled the OF DMA core and seven driver objects with ARM
allmodconfig, Clang 21.1.8 and W=1. No runtime tests were performed.

Changes in v3:
  - Combine the RZ/N1, STM32 DMAMUX and TI router changes with the
    LPC series at Frank's request.
  - Add the separate STM32 sysfs bind/unbind patch suggested by Amelie.
  - Install the release action before publishing the router and
    remove the action if registration fails.
  - Mark driver fixes that depend on the new API as stable+noautosel.
  - Retain the review tags for the unchanged LPC driver diffs.

v2: https://lore.kernel.org/r/20261127110400.379397-1-202300460064@mail.sdu.edu.cn
RZ/N1 review: https://lore.kernel.org/r/axGZwK_S5bdGRwpO@SMW015318
STM32 router review: https://lore.kernel.org/r/awmem4rf9yPfggMa@SMW015318
STM32 sysfs discussion: https://lore.kernel.org/r/f2a156ee-55d4-4a00-ac75-bb51f1785a9d@foss.st.com
TI router patch: https://lore.kernel.org/r/20261128110224.875369-3-202300460064@mail.sdu.edu.cn

A coding assistant helped prepare the router conversions, helper
failure path, STM32 sysfs change and cover letter.

Tian Xuechen (7):
  dmaengine: of: Add managed DMA router registration
  dmaengine: lpc18xx-dmamux: Use managed DMA router registration
  dmaengine: lpc32xx-dmamux: Use managed DMA router registration
  dmaengine: dw: dmamux: Use managed DMA router registration
  dmaengine: stm32: Disable manual bind and unbind
  dmaengine: stm32-dmamux: Use managed DMA router registration
  dmaengine: ti-dma-crossbar: Use managed DMA router registration

 drivers/dma/dw/rzn1-dmamux.c     |  5 +++--
 drivers/dma/lpc18xx-dmamux.c     |  5 +++--
 drivers/dma/lpc32xx-dmamux.c     |  5 +++--
 drivers/dma/stm32/stm32-dma.c    |  1 +
 drivers/dma/stm32/stm32-dmamux.c |  6 ++++--
 drivers/dma/stm32/stm32-mdma.c   |  1 +
 drivers/dma/ti/dma-crossbar.c    | 10 ++++++----
 include/linux/of_dma.h           | 28 ++++++++++++++++++++++++++++
 8 files changed, 49 insertions(+), 12 deletions(-)

base-commit: 2e02fb103be058cf8b2fb24112a74a2715e090f0

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-12-04 17:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 12:16 [PATCH v3 0/7] dmaengine: Manage OF DMA routers and disable STM32 unbind Tian Xuechen
2026-12-04 12:16 ` [PATCH v3 1/7] dmaengine: of: Add managed DMA router registration Tian Xuechen
2026-12-04 17:54   ` Frank Li
2026-12-04 12:16 ` [PATCH v3 2/7] dmaengine: lpc18xx-dmamux: Use " Tian Xuechen
2026-12-04 12:16 ` [PATCH v3 3/7] dmaengine: lpc32xx-dmamux: " Tian Xuechen
2026-12-04 12:16 ` [PATCH v3 4/7] dmaengine: dw: dmamux: " Tian Xuechen
2026-12-04 17:55   ` Frank Li
2026-12-04 12:16 ` [PATCH v3 5/7] dmaengine: stm32: Disable manual bind and unbind Tian Xuechen
2026-12-04 17:56   ` Frank Li
2026-12-04 12:16 ` [PATCH v3 6/7] dmaengine: stm32-dmamux: Use managed DMA router registration Tian Xuechen
2026-12-04 17:57   ` Frank Li
2026-12-04 12:16 ` [PATCH v3 7/7] dmaengine: ti-dma-crossbar: " Tian Xuechen
2026-12-04 17:57   ` Frank Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox