[PATCH v7 03/10] dmaengine: arm-dma350: Initialize channel coherency
From: Jelly Jia
Date: Tue Nov 17 2026 - 04:43:59 EST
Command preparation chooses memory attributes from dch->coherent, but probe
only uses the device's coherency for the command-link attributes. The zero-
initialized channel field therefore selects noncoherent memory attributes
even for a coherent controller.
Initialize each usable channel's coherency from the DMA device attribute.
Fixes: 5d099706449d ("dmaengine: Add Arm DMA-350 driver")
Signed-off-by: Jelly Jia <Jelly.Jia@xxxxxxxxxxx>
---
drivers/dma/arm-dma350.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/dma/arm-dma350.c b/drivers/dma/arm-dma350.c
index d9f1d2976034..266df7923d7f 100644
--- a/drivers/dma/arm-dma350.c
+++ b/drivers/dma/arm-dma350.c
@@ -625,6 +625,7 @@ static int d350_probe(struct platform_device *pdev)
reg |= FIELD_PREP(CH_LINK_MEMATTR, coherent ? MEMATTR_WB : MEMATTR_NC);
writel_relaxed(reg, dch->base + CH_LINKATTR);
+ dch->coherent = coherent;
dch->vc.desc_free = d350_desc_free;
vchan_init(&dch->vc, &dmac->dma);
}
--
2.54.0