Skip to content

Commit 74fd51e

Browse files
Alain VolmatSasha Levin
authored andcommitted
spi: stm32: fix missing pointer assignment in case of dma chaining
[ Upstream commit e964932 ] Commit c4f2c05 ("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: c4f2c05 ("spi: stm32: fix pointer-to-pointer variables usage") Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Acked-by: Antonio Quartulli <antonio@mandelbit.com> Link: https://patch.msgid.link/20260224-spi-stm32-chaining-fix-v1-1-5da7a4851b66@foss.st.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent de81cd1 commit 74fd51e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/spi/spi-stm32.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,9 @@ static int stm32_spi_prepare_rx_dma_mdma_chaining(struct stm32_spi *spi,
15701570
return -EINVAL;
15711571
}
15721572

1573+
*rx_mdma_desc = _mdma_desc;
1574+
*rx_dma_desc = _dma_desc;
1575+
15731576
return 0;
15741577
}
15751578

0 commit comments

Comments
 (0)