mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
spi-mxs: Fix chipselect glitch
commit 269e31aecdd0b70f53a05def79480f15cbcc0fd6 upstream.
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: ceeeb99cd8 ("dmaengine: mxs: rename custom flag")
Signed-off-by: Ralf Schlatterbeck <rsc@runtux.com>
Link: https://msgid.link/r/20240202115330.wxkbfmvd76sy3a6a@runtux.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: Stefan Wahren <wahrenst@gmx.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7220b2446e
commit
dff1553c27
1 changed files with 2 additions and 1 deletions
|
|
@ -40,6 +40,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"
|
||||
|
||||
|
|
@ -253,7 +254,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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue