The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] spi: stm32: fix missing pointer assignment in case of dma chaining
@ 2026-02-24 15:09 Alain Volmat
  2026-02-24 15:25 ` Antonio Quartulli
  2026-02-27  1:23 ` Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Alain Volmat @ 2026-02-24 15:09 UTC (permalink / raw)
  To: Mark Brown, Maxime Coquelin, Alexandre Torgue, Clement LE GOFFIC,
	Antonio Quartulli
  Cc: linux-spi, linux-stm32, linux-arm-kernel, linux-kernel,
	Alain Volmat

Commit c4f2c05ab029 ("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: c4f2c05ab029 ("spi: stm32: fix pointer-to-pointer variables usage")
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
---
 drivers/spi/spi-stm32.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c
index b99de8c4cc99..33f211e159ef 100644
--- a/drivers/spi/spi-stm32.c
+++ b/drivers/spi/spi-stm32.c
@@ -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;
 }
 

---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260224-spi-stm32-chaining-fix-5363946e7f3a

Best regards,
-- 
Alain Volmat <alain.volmat@foss.st.com>


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-02-27  1:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-24 15:09 [PATCH] spi: stm32: fix missing pointer assignment in case of dma chaining Alain Volmat
2026-02-24 15:25 ` Antonio Quartulli
2026-02-26 16:46   ` Alain Volmat
2026-02-26 23:03     ` Antonio Quartulli
2026-02-27  1:23 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox