[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250924125941.742020-1-alexander.stein@ew.tq-group.com>
Date: Wed, 24 Sep 2025 14:59:41 +0200
From: Alexander Stein <alexander.stein@...tq-group.com>
To: Lizhi Hou <lizhi.hou@....com>,
Brian Xu <brian.xu@....com>,
Raj Kumar Rampelli <raj.kumar.rampelli@....com>,
Vinod Koul <vkoul@...nel.org>,
Michal Simek <michal.simek@....com>,
Sonal Santan <sonal.santan@....com>,
Max Zhen <max.zhen@....com>
Cc: Alexander Stein <alexander.stein@...tq-group.com>,
dmaengine@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/1] dmaengine: xilinx: xdma: Fix regmap's max_register
max_register specifies the last valid register address. As the BAR is only
64kiB in size, 65536 aka 0x10000 is too big. Restrict the XDMA register
space to be actually 64kiB.
Fixes: 17ce252266c7 ("dmaengine: xilinx: xdma: Add xilinx xdma driver")
Signed-off-by: Alexander Stein <alexander.stein@...tq-group.com>
---
drivers/dma/xilinx/xdma-regs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/xilinx/xdma-regs.h b/drivers/dma/xilinx/xdma-regs.h
index 6ad08878e9386..c6ef198ef7627 100644
--- a/drivers/dma/xilinx/xdma-regs.h
+++ b/drivers/dma/xilinx/xdma-regs.h
@@ -8,7 +8,7 @@
#define __DMA_XDMA_REGS_H
/* The length of register space exposed to host */
-#define XDMA_REG_SPACE_LEN 65536
+#define XDMA_REG_SPACE_LEN 0xffff
/*
* maximum number of DMA channels for each direction:
--
2.43.0
Powered by blists - more mailing lists