powerpc/5200: in lpbfifo, flag DMA irqs as enabled after requesting them
authorRoman Fietze <roman.fietze@telemotive.de>
Sat, 27 Mar 2010 04:09:57 +0000 (22:09 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 27 Mar 2010 04:09:57 +0000 (22:09 -0600)
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>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c

index 929d017..d4f8be3 100644 (file)
@@ -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,