Skip to contentSkip to conversation

PCI: endpoint: pci-epf-test: use dmaengine_desc_set_callback()

PATCH Applied [email protected] 3 participants 3 messages Nov 2 – Nov 24

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: endpoint: pci-epf-test: 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 to make struct dma_async_tx_descriptor private to the DMA engine.

---
 drivers/pci/endpoint/functions/pci-epf-test.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/pci/endpoint/functions/pci-epf-test.c +1 -2
index d4905aa8e4c01..3ec7e1a05b2b9 100644
@@ -197,8 +197,7 @@ static int pci_epf_test_data_transfer(struct pci_epf_test *epf_test,
 
 	reinit_completion(&epf_test->transfer_complete);
 	epf_test->transfer_chan = chan;
-	tx->callback = pci_epf_test_dma_callback;
-	tx->callback_param = epf_test;
+	dmaengine_desc_set_callback(tx, pci_epf_test_dma_callback, NULL, epf_test);
 	epf_test->transfer_cookie = dmaengine_submit(tx);
 
 	ret = dma_submit_error(epf_test->transfer_cookie);
Signature · 1 line
2.43.0
#1 lore raw
Sashiko has reviewed this patch and found no issues.
Quoted 10 lines

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 to make struct dma_async_tx_descriptor private to the DMA engine.

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
maintainer Applied
#2 lore raw
In reply to [email protected]
Quoted 8 lines · On Mon, 02 Nov 2026 14:27:19 -0500, [email protected] wrote:

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 to make struct dma_async_tx_descriptor private to the DMA engine.

[...]

Applied, thanks!

[1/1] PCI: endpoint: pci-epf-test: use dmaengine_desc_set_callback()

      commit: c101fe42450cce2956f5784d81152bbb44846279

Best regards,

Signature · 1 line
மணிவண்ணன் சதாசிவம்