From 1c0c2a095b483985ac5a4a1cd3075bd03c11211c Mon Sep 17 00:00:00 2001 From: Serhiy Katsyuba Date: Fri, 16 Jun 2023 13:15:14 +0200 Subject: [PATCH] drivers: intel_adsp_gpdma: Fix release ownership Fixes a bug in intel_adsp_gpdma_release_ownership(). Before fix, this function actually did nothing for ACE platform and the ownership was not released. Now ownership is released to host CPU + DSP. Signed-off-by: Serhiy Katsyuba --- drivers/dma/dma_intel_adsp_gpdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/dma_intel_adsp_gpdma.c b/drivers/dma/dma_intel_adsp_gpdma.c index 219cec7fad3009..3564b15be0ace0 100644 --- a/drivers/dma/dma_intel_adsp_gpdma.c +++ b/drivers/dma/dma_intel_adsp_gpdma.c @@ -292,7 +292,7 @@ static void intel_adsp_gpdma_release_ownership(const struct device *dev) #ifdef CONFIG_SOC_SERIES_INTEL_ACE const struct intel_adsp_gpdma_cfg *const dev_cfg = dev->config; uint32_t reg = dev_cfg->shim + GPDMA_CTL_OFFSET; - uint32_t val = sys_read32(reg) & ~GPDMA_OSEL(0x0); + uint32_t val = sys_read32(reg) & ~GPDMA_OSEL(0x3); sys_write32(val, reg); /* CHECKME: Do CAVS platforms set ownership over DMA,