Skip to contentSkip to conversation

bus: fsl-mc: Fix dma coherent not avaiable

PATCH New Yi Wang 1 participant 1 message Oct 27, 2021 QorIQ DPAA2 fsl-mc bus driver

lore
Share & tools
lore

Yi Wang

author
#0 lore raw

PATCH 1/1 bus: fsl-mc: Fix dma coherent not avaiable

From: 王业超10154425 <[email protected]>

Commit "a081bd4a" change the third argument of of_dma_configure_id, from 1 to 0, and then the dpni cannot inherit the dma_coherent from fsl-mc bus on fsl-lx2160a.

---
 drivers/bus/fsl-mc/fsl-mc-bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/fsl-mc/fsl-mc-bus.c +1 -1
index 8fd4a35..74dc47b 100644
@@ -146,7 +146,7 @@ static int fsl_mc_dma_configure(struct device *dev)
 		dma_dev = dma_dev->parent;
 
 	if (dev_of_node(dma_dev))
-		return of_dma_configure_id(dev, dma_dev->of_node, 0, &input_id);
+		return of_dma_configure_id(dev, dma_dev->of_node, 1, &input_id);
 
 	return acpi_dma_configure_id(dev, DEV_DMA_COHERENT, &input_id);
 }
Signature · 1 line
1.8.3.1