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.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20251106022015.84970-2-rosenp@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
Rosen Penev
2025-11-05 18:20:14 -08:00
committed by Vinod Koul
parent b729eed5b7
commit 19fed6ca15
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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;