Skip to content
Snippets Groups Projects
Commit e7713a78 authored by Prasanth Babu Mantena's avatar Prasanth Babu Mantena Committed by Tom Rini
Browse files

dma: ti: k3-udma: Fix BCDMA probe by adding check for MMR_RFLOW


RFLOW config related MMR does not exist incase of BCDMA.
Add check to bypass the RFLOW MMR extraction.
Without this, the probe sequence fails checking for
the MMR_RFLOW region, which is valid only for packet based
DMA and obselete for BCDMA.

Fixes: 5abb694d ("dma: ti: k3-udma: Add support for native configuration of chan/flow")
Signed-off-by: default avatarPrasanth Babu Mantena <p-mantena@ti.com>
Tested-by: default avatarJonathan Humphreys <j-humphreys@ti.com>
parent 4be40460
No related branches found
No related tags found
No related merge requests found
...@@ -1331,6 +1331,8 @@ static int udma_get_mmrs(struct udevice *dev) ...@@ -1331,6 +1331,8 @@ static int udma_get_mmrs(struct udevice *dev)
continue; continue;
if (i == MMR_RCHANRT && ud->rchan_cnt == 0) if (i == MMR_RCHANRT && ud->rchan_cnt == 0)
continue; continue;
if (i == MMR_RFLOW && ud->match_data->type == DMA_TYPE_BCDMA)
continue;
ud->mmrs[i] = dev_read_addr_name_ptr(dev, mmr_names[i]); ud->mmrs[i] = dev_read_addr_name_ptr(dev, mmr_names[i]);
if (!ud->mmrs[i]) if (!ud->mmrs[i])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment