Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff7690b4 authored by Yoshihiro Shimoda's avatar Yoshihiro Shimoda Committed by Paul Mundt
Browse files

dma: shdma: add checking the DMAOR_AE in sh_dmae_err



The irq numbers of tranfer end and address error are assigned same number
on some CPU. So the sh_dmae_err() should check the AE flag in DMAOR.

Signed-off-by: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 89078d57
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -865,7 +865,12 @@ static unsigned int sh_dmae_reset(struct sh_dmae_device *shdev)

static irqreturn_t sh_dmae_err(int irq, void *data)
{
	struct sh_dmae_device *shdev = data;

	if (dmaor_read(shdev) & DMAOR_AE)
		return IRQ_RETVAL(sh_dmae_reset(data));
	else
		return IRQ_NONE;
}

static void dmae_do_tasklet(unsigned long data)