diff mbox

Mantis: append tasklet maintenance for DVB stream delivery

Message ID 4C1DFD75.3080606@kolumbus.fi (mailing list archive)
State Superseded
Headers show

Commit Message

Marko Ristola June 20, 2010, 11:37 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/dvb/mantis/mantis_dma.c 
b/drivers/media/dvb/mantis/mantis_dma.c
index 46202a4..cf502a6 100644
--- a/drivers/media/dvb/mantis/mantis_dma.c
+++ b/drivers/media/dvb/mantis/mantis_dma.c
@@ -217,12 +217,14 @@  void mantis_dma_start(struct mantis_pci *mantis)
      mmwrite(MANTIS_FIFO_EN | MANTIS_DCAP_EN
                     | MANTIS_RISC_EN, MANTIS_DMA_CTL);

+    tasklet_enable(&mantis->tasklet);
  }

  void mantis_dma_stop(struct mantis_pci *mantis)
  {
      u32 stat = 0, mask = 0;

+    tasklet_disable(&mantis->tasklet);
      stat = mmread(MANTIS_INT_STAT);
      mask = mmread(MANTIS_INT_MASK);
      dprintk(MANTIS_DEBUG, 1, "Mantis Stop DMA engine");
diff --git a/drivers/media/dvb/mantis/mantis_dvb.c 
b/drivers/media/dvb/mantis/mantis_dvb.c
index 99d82ee..0c29f01 100644
--- a/drivers/media/dvb/mantis/mantis_dvb.c
+++ b/drivers/media/dvb/mantis/mantis_dvb.c
@@ -216,6 +216,7 @@  int __devinit mantis_dvb_init(struct mantis_pci *mantis)

      dvb_net_init(&mantis->dvb_adapter, &mantis->dvbnet, 
&mantis->demux.dmx);
      tasklet_init(&mantis->tasklet, mantis_dma_xfer, (unsigned long) 
mantis);
+    tasklet_disable_nosync(&mantis->tasklet);
      if (mantis->hwconfig) {