Skip to content

Commit e2f6a57

Browse files
kmaincentvinodkoul
authored andcommitted
dmaengine: dw-edma: Add HDMA remote interrupt configuration
Only the local interruption was configured, remote interrupt was left behind. This patch fix it by setting stop and abort remote interrupts when the DW_EDMA_CHIP_LOCAL flag is not set. Fixes: e74c395 ("dmaengine: dw-edma: Add support for native HDMA") Signed-off-by: Kory Maincent <[email protected]> Reviewed-by: Serge Semin <[email protected]> Acked-by: Manivannan Sadhasivam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 930a8a0 commit e2f6a57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/dma/dw-edma/dw-hdma-v0-core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ static void dw_hdma_v0_core_start(struct dw_edma_chunk *chunk, bool first)
237237
tmp = GET_CH_32(dw, chan->dir, chan->id, int_setup) |
238238
HDMA_V0_STOP_INT_MASK | HDMA_V0_ABORT_INT_MASK |
239239
HDMA_V0_LOCAL_STOP_INT_EN | HDMA_V0_LOCAL_ABORT_INT_EN;
240+
if (!(dw->chip->flags & DW_EDMA_CHIP_LOCAL))
241+
tmp |= HDMA_V0_REMOTE_STOP_INT_EN | HDMA_V0_REMOTE_ABORT_INT_EN;
240242
SET_CH_32(dw, chan->dir, chan->id, int_setup, tmp);
241243
/* Channel control */
242244
SET_CH_32(dw, chan->dir, chan->id, control1, HDMA_V0_LINKLIST_EN);

0 commit comments

Comments
 (0)