Patchwork mpc52xx_lpbfifo: flag DMA irqs as enabled after requesting them

login
register
mail settings
Submitter Roman Fietze
Date March 12, 2010, 5:58 a.m.
Message ID <201003120658.55967.roman.fietze@telemotive.de>
Download mbox | patch
Permalink /patch/47662/
State Accepted, archived
Headers show

Comments

Roman Fietze - March 12, 2010, 5:58 a.m.
Hello,

This patch avoids unbalanced enable/disable messages for the DMA
interrupts when running the 5200 platform SCLPC/BestComm driver in DMA
mode.


Signed-off-by: Roman Fietze <roman.fietze@telemotive.de>
---
 arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Grant Likely - March 27, 2010, 1:49 a.m.
On Thu, Mar 11, 2010 at 10:58 PM, Roman Fietze
<roman.fietze@telemotive.de> wrote:
> Hello,
>
> This patch avoids unbalanced enable/disable messages for the DMA
> interrupts when running the 5200 platform SCLPC/BestComm driver in DMA
> mode.
>
>
> Signed-off-by: Roman Fietze <roman.fietze@telemotive.de>

Applied, thanks.

g.

Patch

diff --git a/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c b/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c
index 929d017..d4f8be3 100644
--- a/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c
+++ b/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c
@@ -481,6 +481,8 @@  mpc52xx_lpbfifo_probe(struct of_device *op, const struct of_device_id *match)
 	if (rc)
 		goto err_bcom_rx_irq;
 
+	lpbfifo.dma_irqs_enabled = 1;
+
 	/* Request the Bestcomm transmit (memory --> fifo) task and IRQ */
 	lpbfifo.bcom_tx_task =
 		bcom_gen_bd_tx_init(2, res.start + LPBFIFO_REG_FIFO_DATA,