Skip to content

Commit

Permalink
zephyr: dma_domain: Add function
Browse files Browse the repository at this point in the history
Signed-off-by: Zhang Peng <[email protected]>
  • Loading branch information
Zhang Peng committed Dec 25, 2023
1 parent 39d9b66 commit 2d48c96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/schedule/zephyr_dma_domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,10 @@ static void dma_irq_handler(void *data)
list_for_item(i, &irq_data->channels) {
chan_data = container_of(i, struct zephyr_dma_domain_channel, list);

if (dma_interrupt_legacy(chan_data->channel, DMA_IRQ_STATUS_GET))
if (dma_interrupt_legacy(chan_data->channel, DMA_IRQ_STATUS_GET)) {
dma_interrupt_legacy(chan_data->channel, DMA_IRQ_CLEAR);
dma_data_copied_set(chan_data->channel);
}
}

/* clear IRQ - the mask argument is unused ATM */
Expand Down

0 comments on commit 2d48c96

Please sign in to comment.