diff options
-rw-r--r-- | drivers/media/dvb/mantis/mantis_dma.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/dvb/mantis/mantis_dma.c b/drivers/media/dvb/mantis/mantis_dma.c index b8fd1c7cd294..e207870fb45d 100644 --- a/drivers/media/dvb/mantis/mantis_dma.c +++ b/drivers/media/dvb/mantis/mantis_dma.c | |||
@@ -190,7 +190,8 @@ void mantis_dma_start(struct mantis_pci *mantis) | |||
190 | 190 | ||
191 | mantis_risc_program(mantis); | 191 | mantis_risc_program(mantis); |
192 | mmwrite(cpu_to_le32(mantis->risc_dma), MANTIS_RISC_START); | 192 | mmwrite(cpu_to_le32(mantis->risc_dma), MANTIS_RISC_START); |
193 | mmwrite(MANTIS_GPIF_RDWRN, MANTIS_GPIF_ADDR); | 193 | // mmwrite(MANTIS_GPIF_RDWRN, MANTIS_GPIF_ADDR); |
194 | mmwrite(mmread(MANTIS_GPIF_ADDR) | MANTIS_GPIF_RDWRN, MANTIS_GPIF_ADDR); | ||
194 | 195 | ||
195 | mmwrite(0, MANTIS_DMA_CTL); | 196 | mmwrite(0, MANTIS_DMA_CTL); |
196 | mantis->last_block = mantis->finished_block = 0; | 197 | mantis->last_block = mantis->finished_block = 0; |
@@ -210,6 +211,8 @@ void mantis_dma_stop(struct mantis_pci *mantis) | |||
210 | mask = mmread(MANTIS_INT_MASK); | 211 | mask = mmread(MANTIS_INT_MASK); |
211 | dprintk(verbose, MANTIS_DEBUG, 1, "Mantis Stop DMA engine"); | 212 | dprintk(verbose, MANTIS_DEBUG, 1, "Mantis Stop DMA engine"); |
212 | 213 | ||
214 | mmwrite((mmread(MANTIS_GPIF_ADDR) & (~(MANTIS_GPIF_RDWRN))), MANTIS_GPIF_ADDR); | ||
215 | |||
213 | mmwrite((mmread(MANTIS_DMA_CTL) & ~(MANTIS_FIFO_EN | | 216 | mmwrite((mmread(MANTIS_DMA_CTL) & ~(MANTIS_FIFO_EN | |
214 | MANTIS_DCAP_EN | | 217 | MANTIS_DCAP_EN | |
215 | MANTIS_RISC_EN)), MANTIS_DMA_CTL); | 218 | MANTIS_RISC_EN)), MANTIS_DMA_CTL); |