From 48ad1b775efa450620fcb994d6cc19dea5a7cd06 Mon Sep 17 00:00:00 2001 From: Paul Olaru Date: Wed, 18 Mar 2020 14:58:52 +0200 Subject: [PATCH] platform: imx8m: dma: Fix DMA interrupt handling On i.MX8M we don't use SDMA which requires individual interrupts per channel. Let dma_chan_irq and dma_chan_irq_name fallback to the controller specific interrupt. Signed-off-by: Paul Olaru --- src/platform/imx8m/include/platform/lib/dma.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platform/imx8m/include/platform/lib/dma.h b/src/platform/imx8m/include/platform/lib/dma.h index 0ebdcf4cc..e6d4cfa71 100644 --- a/src/platform/imx8m/include/platform/lib/dma.h +++ b/src/platform/imx8m/include/platform/lib/dma.h @@ -18,8 +18,7 @@ #define DMA_ID_SDMA2 0 #define DMA_ID_HOST 1 -#define dma_chan_irq(dma, chan) \ - irqstr_get_sof_int(((int *)dma->plat_data.drv_plat_data)[chan]) +#define dma_chan_irq(dma, chan) dma_irq(dma) #define dma_chan_irq_name(dma, chan) dma_irq_name(dma) #endif /* __PLATFORM_LIB_DMA_H__ */