slimbus: use dmaengine_desc_set_callback()
Subsystems (4)
PATCH 1/1 slimbus: use dmaengine_desc_set_callback()
From: Frank Li <[email protected]>
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.
No functional change intended. Prepare make to struct dma_async_tx_descriptor private to the DMA engine.
--- drivers/slimbus/qcom-ngd-ctrl.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
drivers/slimbus/qcom-ngd-ctrl.c +3 -6
@@ -595,8 +595,7 @@ static int qcom_slim_ngd_tx_msg_post(struct qcom_slim_ngd_ctrl *ctrl,return -EINVAL ; } - desc->desc->callback = qcom_slim_ngd_tx_msg_dma_cb; - desc->desc->callback_param = desc; +dmaengine_desc_set_callback (desc->desc, qcom_slim_ngd_tx_msg_dma_cb,NULL , desc); desc->desc->cookie =dmaengine_submit (desc->desc);dma_async_issue_pending (ctrl->dma_tx_channel);spin_unlock_irqrestore (&ctrl->tx_buf_lock, flags);
@@ -642,8 +641,7 @@ static void qcom_slim_ngd_rx_msgq_cb(void *args)return ; } - desc->desc->callback = qcom_slim_ngd_rx_msgq_cb; - desc->desc->callback_param = desc; +dmaengine_desc_set_callback (desc->desc, qcom_slim_ngd_rx_msgq_cb,NULL , desc); desc->desc->cookie =dmaengine_submit (desc->desc);dma_async_issue_pending (ctrl->dma_rx_channel); }
@@ -667,8 +665,7 @@ static int qcom_slim_ngd_post_rx_msgq(struct qcom_slim_ngd_ctrl *ctrl)return -EINVAL ; } - desc->desc->callback = qcom_slim_ngd_rx_msgq_cb; - desc->desc->callback_param = desc; +dmaengine_desc_set_callback (desc->desc, qcom_slim_ngd_rx_msgq_cb,NULL , desc); desc->desc->cookie =dmaengine_submit (desc->desc); }dma_async_issue_pending (ctrl->dma_rx_channel);
Signature · 1 line
2.43.0
Quoted 6 lines · On 02/11/2026 18:48, [email protected] wrote:
From: Frank Li <[email protected]>
Replace open-coded assignments to callback and
callback_paramfields of structdma_async_tx_descriptorwith calls to thedmaengine_desc_set_callback()helper.
Quoted 8 lines
No functional change intended. Prepare make to struct
dma_async_tx_descriptorprivate to the DMA engine.Signed-off-by Frank Li <[email protected]>--- drivers/slimbus/qcom-ngd-ctrl.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
Best regards,
Krzysztof
Quoted 8 lines · On Mon, 02 Nov 2026 12:48:17 -0500, [email protected] wrote:
Replace open-coded assignments to callback and
callback_paramfields of structdma_async_tx_descriptorwith calls to thedmaengine_desc_set_callback()helper.No functional change intended. Prepare make to struct
dma_async_tx_descriptorprivate to the DMA engine.[...]
Applied, thanks!
[1/1] slimbus: use dmaengine_desc_set_callback()
commit: c00a2b7fa897ad7bcadb7095780e9c2008e86851
Best regards,
Signature · 1 line
Srinivas Kandagatla <[email protected]>