]> git.ipfire.org Git - thirdparty/linux.git/commit
dmaengine: xilinx_dma: Fix uninitialized addr_width when "xlnx,addrwidth" property...
authorSuraj Gupta <suraj.gupta2@amd.com>
Tue, 21 Oct 2025 18:30:06 +0000 (00:00 +0530)
committerVinod Koul <vkoul@kernel.org>
Tue, 16 Dec 2025 15:46:59 +0000 (21:16 +0530)
commitc0732fe78728718c853ef8e7af5bbb05262acbd1
tree2912d2c7178d3eccbfbae609b787c0304895eef0
parent2efd07a7c36949e6fa36a69183df24d368bf9e96
dmaengine: xilinx_dma: Fix uninitialized addr_width when "xlnx,addrwidth" property is missing

When device tree lacks optional "xlnx,addrwidth" property, the addr_width
variable remained uninitialized with garbage values, causing incorrect
DMA mask configuration and subsequent probe failure. The fix ensures a
fallback to the default 32-bit address width when this property is missing.

Signed-off-by: Suraj Gupta <suraj.gupta2@amd.com>
Fixes: b72db4005fe4 ("dmaengine: vdma: Add 64 bit addressing support to the driver")
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Reviewed-by: Folker Schwesinger <dev@folker-schwesinger.de>
Link: https://patch.msgid.link/20251021183006.3434495-1-suraj.gupta2@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xilinx_dma.c