spi: spi-fsl-dspi: Use DMA for S32G controller in target mode
authorLarisa Grigore <larisa.grigore@nxp.com>
Thu, 22 May 2025 14:51:38 +0000 (15:51 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 8 Jun 2025 22:35:34 +0000 (23:35 +0100)
commit870d6fda18d590df88beac9b0504f810807a5ed6
treea2eb16a51bd926b8a48e06cba7028c2fcab4d90b
parentcac7e5054115fcc41b1cb050af8e8971f7c9b22b
spi: spi-fsl-dspi: Use DMA for S32G controller in target mode

Switch to DMA for target mode otherwise the controller is too slow to
feed TX FIFO and UNDERFLOW occurs frequently. DMA can work only with 8
and 16 bits per word. 32bits per word is not supported, this is a
hardware limitation, so we keep the controller mode in TCFQ mode.

Signed-off-by: Larisa Grigore <larisa.grigore@nxp.com>
Signed-off-by: Ciprian Marian Costea <ciprianmarian.costea@nxp.com>
Signed-off-by: James Clark <james.clark@linaro.org>
Link: https://patch.msgid.link/20250522-james-nxp-spi-v2-9-bea884630cfb@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c