Skip to content

Commit e964932

Browse files
Alain Volmatbroonie
authored andcommitted
spi: stm32: fix missing pointer assignment in case of dma chaining
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>
1 parent 297318a commit e964932

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/spi/spi-stm32.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,6 +1625,9 @@ static int stm32_spi_prepare_rx_dma_mdma_chaining(struct stm32_spi *spi,
16251625
return -EINVAL;
16261626
}
16271627

1628+
*rx_mdma_desc = _mdma_desc;
1629+
*rx_dma_desc = _dma_desc;
1630+
16281631
return 0;
16291632
}
16301633

0 commit comments

Comments
 (0)