Commit c0732fe
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 <[email protected]>
Fixes: b72db40 ("dmaengine: vdma: Add 64 bit addressing support to the driver")
Reviewed-by: Radhey Shyam Pandey <[email protected]>
Reviewed-by: Folker Schwesinger <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Vinod Koul <[email protected]>1 parent 2efd07a commit c0732fe
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| |||
3159 | 3160 | | |
3160 | 3161 | | |
3161 | 3162 | | |
3162 | | - | |
| 3163 | + | |
3163 | 3164 | | |
3164 | 3165 | | |
3165 | 3166 | | |
| |||
3235 | 3236 | | |
3236 | 3237 | | |
3237 | 3238 | | |
3238 | | - | |
| 3239 | + | |
| 3240 | + | |
| 3241 | + | |
3239 | 3242 | | |
3240 | 3243 | | |
3241 | 3244 | | |
| |||
0 commit comments