[PATCH v2 1/1] rapidio: use dmaengine_desc_set_callback()

From: Frank . Li

Date: Tue Nov 03 2026 - 09:45:02 EST


From: Frank Li <Frank.Li@xxxxxxx>

Replace open-coded assignments to callback and callback_param fields
of struct dma_async_tx_descriptor with calls to the
dmaengine_desc_set_callback() helper in rio_mport_cdev driver.

No functional change intended. Prepare to make struct
dma_async_tx_descriptor private to the DMA engine.

Signed-off-by: Frank Li <Frank.Li@xxxxxxx>
---
change in v2
- split from ntb patch set.
---
drivers/rapidio/devices/rio_mport_cdev.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/rapidio/devices/rio_mport_cdev.c b/drivers/rapidio/devices/rio_mport_cdev.c
index 40d2953a9a7f9..585e3f9ff29ca 100644
--- a/drivers/rapidio/devices/rio_mport_cdev.c
+++ b/drivers/rapidio/devices/rio_mport_cdev.c
@@ -717,8 +717,7 @@ static int do_dma_request(struct mport_dma_req *req,
goto err_out;
}

- tx->callback = dma_xfer_callback;
- tx->callback_param = req;
+ dmaengine_desc_set_callback(tx, dma_xfer_callback, NULL, req);

req->status = DMA_IN_PROGRESS;
kref_get(&req->refcount);
--
2.43.0