dma: remove IE flag at end of transfer

This should have no effect since the channel is disabled, but it's much
better to leave unused modules in predictable states.
This commit is contained in:
Lephe 2022-01-10 13:31:20 +01:00
parent 3aa1471ac5
commit ef8707ee9d
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -146,6 +146,7 @@ bool dma_transfer_async(int channel, dma_size_t size, uint blocks,
static void dma_interrupt_transfer_ended(int channel)
{
channel_t *ch = dma_channel(channel);
ch->CHCR.IE = 0;
ch->CHCR.DE = 0;
ch->CHCR.TE = 0;