[PATCH v2 0/7] async_tx: use DMA Engine APIs

From: Frank . Li

Date: Tue Nov 03 2026 - 14:52:59 EST


Use DMA Engine APIs to prepare make dma_device private.
Last patch mark async_tx as deprecated.

Depend on below two patches
https://lore.kernel.org/imx/20261014190337.1718622-1-Frank.Li@xxxxxxxxxxx/T/#u

base on https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git/
branch: next

Remove whole async_tx RFC patch at
https://lore.kernel.org/linux-crypto/20261015-asycn_tx_remove-v1-0-056a7085e0a1@xxxxxxx/

Signed-off-by: Frank Li <Frank.Li@xxxxxxx>
---
Changes in v2:
- Add patch to call dmaengine_set_callback()
- collect david and peng fan's review by tags
- Link to v1: https://patch.msgid.link/20261014-async_tx_dma-v1-0-35790d01e190@xxxxxxx

---
Frank Li (7):
async_tx: use dmaengine_desc_set_callback()
async_tx: replace direct ->device_prep*() calls with standard DMA engine API
async_tx: use dmaengine_get_dma_device() instead of chan->device->dev
async_tx: use dmaengine_prep_dma_(pq|pq_val|interrupt|xor) instead of direct callback
async_tx: convert to dmaengine_is_*_aligned() helpers
async_tx: replace open-coded cap_mask accesses with dmaengine_has_cap()
async_tx: Mark as Deprecated in Kconfig

crypto/async_tx/Kconfig | 2 +-
crypto/async_tx/async_memcpy.c | 14 +++++------
crypto/async_tx/async_pq.c | 44 ++++++++++++++++----------------
crypto/async_tx/async_raid6_recov.c | 14 +++++------
crypto/async_tx/async_tx.c | 25 ++++++-------------
crypto/async_tx/async_xor.c | 50 +++++++++++++++++--------------------
include/linux/async_tx.h | 8 ++----
7 files changed, 67 insertions(+), 90 deletions(-)
---
base-commit: a2313814224c3944419186b273c8a29e7c8c37db
change-id: 20261014-async_tx_dma-4f69bf80176f

Best regards,
--
Frank Li <Frank.Li@xxxxxxx>