Skip to contentSkip to conversation

mtd: nand: use dmaengine_submit() instead of ->tx_submit()

PATCH Applied [email protected] 2 participants 2 messages Oct 2 – Oct 12

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

PATCH 1/1 mtd: nand: use dmaengine_submit() instead of ->tx_submit()

From: Frank Li <[email protected]>

Replace direct dma_async_tx_descriptor->tx_submit() calls with the proper dmaengine_submit() API wrapper.

Assisted-by LLM
---
 drivers/mtd/nand/onenand/onenand_omap2.c     | 4 ++--
 drivers/mtd/nand/raw/fsmc_nand.c             | 2 +-
 drivers/mtd/nand/raw/intel-nand-controller.c | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/mtd/nand/onenand/onenand_omap2.c +2 -2
index 0793251ada3b3..644498187d8fa 100644
@@ -340,9 +340,9 @@ static inline int omap2_onenand_dma_transfer(struct omap2_onenand *c,
 	tx->callback = omap2_onenand_dma_complete_func;
 	tx->callback_param = &c->dma_done;
 
-	cookie = tx->tx_submit(tx);
+	cookie = dmaengine_submit(tx);
 	if (dma_submit_error(cookie)) {
-		dev_err(&c->pdev->dev, "Failed to do DMA tx_submit\n");
+		dev_err(&c->pdev->dev, "Failed to do dmaengine_submit\n");
 		return -EIO;
 	}
 
drivers/mtd/nand/raw/fsmc_nand.c +1 -1
index 08ef4425559c3..837c23c63aeb2 100644
@@ -524,7 +524,7 @@ static int dma_xfer(struct fsmc_nand_data *host, void *buffer, int len,
 
 	tx->callback = dma_complete;
 	tx->callback_param = host;
-	cookie = tx->tx_submit(tx);
+	cookie = dmaengine_submit(tx);
 
 	ret = dma_submit_error(cookie);
 	if (ret) {
drivers/mtd/nand/raw/intel-nand-controller.c +1 -1
index 0a4f5ff111334..94d2161bf5a1a 100644
@@ -324,7 +324,7 @@ static int ebu_dma_start(struct ebu_nand_controller *ebu_host, u32 dir,
 
 	tx->callback = callback;
 	tx->callback_param = ebu_host;
-	cookie = tx->tx_submit(tx);
+	cookie = dmaengine_submit(tx);
 
 	ret = dma_submit_error(cookie);
 	if (ret) {
Signature · 1 line
2.43.0
maintainer Applied
#1 lore raw
Quoted 4 lines · On Fri, 02 Oct 2026 16:16:07 -0400, [email protected] wrote:

Replace direct dma_async_tx_descriptor->tx_submit() calls with the proper dmaengine_submit() API wrapper.

Applied to nand/next, thanks!

[1/1] mtd: nand: use dmaengine_submit() instead of ->tx_submit()

      commit: 8bef0196a4e21d4415091de2b6c498320e03ada2

Patche(s) should be available on mtd/linux.git and will be part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl