spi: use dmaengine_submit() instead of ->tx_submit()
Subsystems (5)
PATCH 1/1 spi: 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.
--- drivers/spi/atmel-quadspi.c | 2 +- drivers/spi/spi-at91-usart.c | 4 ++-- drivers/spi/spi-atmel.c | 4 ++-- drivers/spi/spi-cadence-quadspi.c | 2 +- drivers/spi/spi-ti-qspi.c | 2 +- drivers/spi/spi-topcliff-pch.c | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-)
drivers/spi/atmel-quadspi.c +1 -1
@@ -792,7 +792,7 @@ static int atmel_qspi_dma_xfer(struct atmel_qspi *aq, struct dma_chan *chan,reinit_completion (&aq->dma_completion); tx->callback = atmel_qspi_dma_callback; tx->callback_param = aq; - cookie = tx->tx_submit (tx); + cookie =dmaengine_submit (tx); ret =dma_submit_error (cookie);if (ret) {dev_err (&aq->pdev->dev,"dma_submit_error %d\n" , cookie);
drivers/spi/spi-at91-usart.c +2 -2
@@ -231,11 +231,11 @@ static int at91_usart_spi_dma_transfer(struct spi_controller *ctlr, rxdesc->callback = dma_callback; rxdesc->callback_param = ctlr; - cookie = rxdesc->tx_submit (rxdesc); + cookie =dmaengine_submit (rxdesc);if (dma_submit_error (cookie)) goto at91_usart_spi_err_dma; - cookie = txdesc->tx_submit (txdesc); + cookie =dmaengine_submit (txdesc);if (dma_submit_error (cookie)) goto at91_usart_spi_err_dma;
drivers/spi/spi-atmel.c +2 -2
@@ -871,10 +871,10 @@ static int atmel_spi_next_xfer_dma_submit(struct spi_controller *host, rxdesc->callback_param = host;/* Submit and fire RX and TX with TX last so we're ready to read! */ - cookie = rxdesc->tx_submit (rxdesc); + cookie =dmaengine_submit (rxdesc);if (dma_submit_error (cookie)) goto err_dma; - cookie = txdesc->tx_submit (txdesc); + cookie =dmaengine_submit (txdesc);if (dma_submit_error (cookie)) goto err_dma;dma_async_issue_pending (rxchan);
drivers/spi/spi-cadence-quadspi.c +1 -1
@@ -1398,7 +1398,7 @@ static int cqspi_direct_read_execute(struct cqspi_flash_pdata *f_pdata, tx->callback = cqspi_rx_dma_callback; tx->callback_param = cqspi; - cookie = tx->tx_submit (tx); + cookie =dmaengine_submit (tx);reinit_completion (&cqspi->rx_dma_complete); ret =dma_submit_error (cookie);
drivers/spi/spi-ti-qspi.c +1 -1
@@ -454,7 +454,7 @@ static int ti_qspi_dma_xfer(struct ti_qspi *qspi, dma_addr_t dma_dst, tx->callback = ti_qspi_dma_callback; tx->callback_param = qspi; - cookie = tx->tx_submit (tx); + cookie =dmaengine_submit (tx);reinit_completion (&qspi->transfer_complete); ret =dma_submit_error (cookie);
drivers/spi/spi-topcliff-pch.c +2 -2
@@ -1092,8 +1092,8 @@ static void pch_spi_handle_dma(struct pch_spi_data *data, int *bpw)spin_lock_irqsave (&data->lock, flags);pch_spi_writereg (data->host,PCH_SSNXCR ,SSN_LOW ); - desc_rx->tx_submit (desc_rx); - desc_tx->tx_submit (desc_tx); +dmaengine_submit (desc_rx); +dmaengine_submit (desc_tx);spin_unlock_irqrestore (&data->lock, flags);/* reset transfer complete flag */
Signature · 1 line
2.43.0
Mark Brown
maintainerQuoted 1 line · On Fri, 02 Oct 2026 15:26:14 -0400, [email protected] wrote:
spi: use
dmaengine_submit()instead of ->tx_submit()
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-7.4
Thanks!
[1/1] spi: use dmaengine_submit() instead of ->tx_submit()
https://git.kernel.org/broonie/spi/c/ec79a280e8dd
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark