Unverified Commit 269e31ae authored by Ralf Schlatterbeck's avatar Ralf Schlatterbeck Committed by Mark Brown
Browse files

spi-mxs: Fix chipselect glitch



There was a change in the mxs-dma engine that uses a new custom flag.
The change was not applied to the mxs spi driver.
This results in chipselect being deasserted too early.
This fixes the chipselect problem by using the new flag in the mxs-spi
driver.

Fixes: ceeeb99c ("dmaengine: mxs: rename custom flag")
Signed-off-by: default avatarRalf Schlatterbeck <rsc@runtux.com>
Link: https://msgid.link/r/20240202115330.wxkbfmvd76sy3a6a@runtux.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8f44e380
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@
#include <linux/spi/spi.h>
#include <linux/spi/mxs-spi.h>
#include <trace/events/spi.h>
#include <linux/dma/mxs-dma.h>

#define DRIVER_NAME		"mxs-spi"

@@ -252,7 +253,7 @@ static int mxs_spi_txrx_dma(struct mxs_spi *spi,
		desc = dmaengine_prep_slave_sg(ssp->dmach,
				&dma_xfer[sg_count].sg, 1,
				(flags & TXRX_WRITE) ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM,
				DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
				DMA_PREP_INTERRUPT | MXS_DMA_CTRL_WAIT4END);

		if (!desc) {
			dev_err(ssp->dev,