Unverified Commit e9649322 authored by Alain Volmat's avatar Alain Volmat Committed by Mark Brown
Browse files

spi: stm32: fix missing pointer assignment in case of dma chaining



Commit c4f2c05a ("spi: stm32: fix pointer-to-pointer variables usage")
introduced a regression since dma descriptors generated as part of the
stm32_spi_prepare_rx_dma_mdma_chaining function are not well propagated
to the caller function, leading to mdma-dma chaining being no more
functional.

Fixes: c4f2c05a ("spi: stm32: fix pointer-to-pointer variables usage")
Signed-off-by: default avatarAlain Volmat <alain.volmat@foss.st.com>
Acked-by: default avatarAntonio Quartulli <antonio@mandelbit.com>
Link: https://patch.msgid.link/20260224-spi-stm32-chaining-fix-v1-1-5da7a4851b66@foss.st.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 297318a1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1625,6 +1625,9 @@ static int stm32_spi_prepare_rx_dma_mdma_chaining(struct stm32_spi *spi,
		return -EINVAL;
	}

	*rx_mdma_desc = _mdma_desc;
	*rx_dma_desc = _dma_desc;

	return 0;
}