Commit 9f2f3ce3 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Vinod Koul

dmaengine: ti: k3-udma: Use correct node to read "ti,udma-atype"

The "ti,udma-atype" property is expected in the UDMA node and not in the
parent navss node.

Fixes: 0ebcf1a2 ("dmaengine: ti: k3-udma: Implement support for atype (for virtualization)")
Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20200527065357.30791-1-peter.ujfalusi@ti.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent b3a9e3b9
...@@ -3593,7 +3593,7 @@ static int udma_probe(struct platform_device *pdev) ...@@ -3593,7 +3593,7 @@ static int udma_probe(struct platform_device *pdev)
return ret; return ret;
} }
ret = of_property_read_u32(navss_node, "ti,udma-atype", &ud->atype); ret = of_property_read_u32(dev->of_node, "ti,udma-atype", &ud->atype);
if (!ret && ud->atype > 2) { if (!ret && ud->atype > 2) {
dev_err(dev, "Invalid atype: %u\n", ud->atype); dev_err(dev, "Invalid atype: %u\n", ud->atype);
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment