[PATCH 1/1] dmaengine: xilinx: xdma: Fix regmap's max_register
Lizhi Hou
lizhi.hou at amd.com
Wed Sep 24 09:47:45 PDT 2025
There is a patch for this.
https://lore.kernel.org/dmaengine/20250903-xdma-max-reg-v4-1-894721175025@amarulasolutions.com/
Thanks,
Lizhi
On 9/24/25 05:59, Alexander Stein wrote:
> 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 at ew.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:
More information about the linux-arm-kernel
mailing list