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

From: Frank . Li

Date: Wed Sep 23 2026 - 13:39:08 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.

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 7eba152ecb97b..5637c95be6b3b 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