Skip to content

Commit

Permalink
drivers: intel_adsp_gpdma: Fix release ownership
Browse files Browse the repository at this point in the history
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 <serhiy.katsyuba@intel.com>
  • Loading branch information
serhiy-katsyuba-intel authored and nashif committed Jul 19, 2023
1 parent 6254527 commit 1c0c2a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/dma_intel_adsp_gpdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1c0c2a0

Please sign in to comment.