[PATCH v2 6/7] async_tx: replace open-coded cap_mask accesses with dmaengine_has_cap()

From: Frank . Li

Date: Tue Nov 03 2026 - 14:58:37 EST


From: Frank Li <Frank.Li@xxxxxxx>

Replace remaining direct accesses to chan->device->cap_mask with the
dmaengine_has_cap() helper which already exists in dmaengine.h.

Reviewed-by: Peng Fan <peng.fan@xxxxxxx>
Reviewed-by: Dave Jiang <dave.jiang@xxxxxxxxx>
Signed-off-by: Frank Li <Frank.Li@xxxxxxx>
---
crypto/async_tx/async_tx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/async_tx/async_tx.c b/crypto/async_tx/async_tx.c
index 90d6df9f872cc..afb829d7641a1 100644
--- a/crypto/async_tx/async_tx.c
+++ b/crypto/async_tx/async_tx.c
@@ -47,7 +47,7 @@ __async_tx_find_channel(struct async_submit_ctl *submit,

/* see if we can keep the chain on one channel */
if (depend_tx &&
- dma_has_cap(tx_type, depend_tx->chan->device->cap_mask))
+ dmaengine_has_cap(depend_tx->chan, tx_type))
return depend_tx->chan;
return async_dma_find_channel(tx_type);
}

--
2.43.0