Skip to contentSkip to conversation

dmaengine: st_fdma: support COMPILE_TEST

PATCH Applied Rosen Penev 2 participants 4 messages Nov 6, 2025 – Dec 23, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover dmaengine: st_fdma: support COMPILE_TEST

First commit fixes compilation under 64-bit and second actually enables it.

Rosen Penev (2):
dmaengine: st_fdma: change dreg_line to long
dmaengine: st_fdma: add COMPILE_TEST support

 drivers/dma/Kconfig   | 2 +-
 drivers/dma/st_fdma.c | 2 +-
 drivers/dma/st_fdma.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

--
2.51.2

#1 lore raw

PATCH 1/2 dmaengine: st_fdma: change dreg_line to long

The code is encoding a pointer into an int which works fine with a 32-bit build. Not with a 64-bit one.

---
 drivers/dma/st_fdma.c | 2 +-
 drivers/dma/st_fdma.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/dma/st_fdma.c +1 -1
index c65ee0c7bfbd..01211090844f 100644
@@ -68,7 +68,7 @@ static void st_fdma_dreq_put(struct st_fdma_chan *fchan)
 {
 	struct st_fdma_dev *fdev = fchan->fdev;
 
-	dev_dbg(fdev->dev, "put dreq_line:%#x\n", fchan->dreq_line);
+	dev_dbg(fdev->dev, "put dreq_line:%#lx\n", fchan->dreq_line);
 	clear_bit(fchan->dreq_line, &fdev->dreq_mask);
 }
 
drivers/dma/st_fdma.h +1 -1
index f296412e96b6..f1e746f7bc7d 100644
@@ -120,7 +120,7 @@ struct st_fdma_chan {
 	struct dma_slave_config scfg;
 	struct st_fdma_cfg cfg;
 
-	int dreq_line;
+	long dreq_line;
 
 	struct virt_dma_chan vchan;
 	struct st_fdma_desc *fdesc;
Signature · 1 line
2.51.2
#2 lore raw

PATCH 2/2 dmaengine: st_fdma: add COMPILE_TEST support

In reply to Rosen Penev

Add COMPILE_TEST as an option to allow test building the driver.

---
 drivers/dma/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/Kconfig +1 -1
index 1e7c8f031b19..243d3959ba79 100644
@@ -590,7 +590,7 @@ config STE_DMA40
 
 config ST_FDMA
 	tristate "ST FDMA dmaengine support"
-	depends on ARCH_STI
+	depends on ARCH_STI || COMPILE_TEST
 	depends on REMOTEPROC
 	select ST_SLIM_REMOTEPROC
 	select DMA_ENGINE
Signature · 1 line
2.51.2
maintainer Applied
#3 lore raw
In reply to Rosen Penev
Quoted 8 lines · Rosen Penev

First commit fixes compilation under 64-bit and second actually enables it.

Rosen Penev (2):
dmaengine: st_fdma: change dreg_line to long
dmaengine: st_fdma: add COMPILE_TEST support

[...]

Applied, thanks!

[1/2] dmaengine: st_fdma: change dreg_line to long

      commit: 19fed6ca15c4c41c28059c25f9cc85c0058cc4fd
[2/2] dmaengine: st_fdma: add COMPILE_TEST support
      commit: c3af05623e079c2a9a9363386796fdea20defa18

Best regards,

Signature · 1 line
~Vinod