mtd: nand: use dmaengine_submit() instead of ->tx_submit()
Subsystems (4)
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
Signed-off-by Frank Li <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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
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 properdmaengine_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