From 8ad813673ae155ce0e601ae864466a59ce7afa95 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 17 Jul 2011 18:26:46 +0200 Subject: Few more fixes --- dma/nwl_engine.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dma/nwl_engine.c') diff --git a/dma/nwl_engine.c b/dma/nwl_engine.c index 6987045..669dbbd 100644 --- a/dma/nwl_engine.c +++ b/dma/nwl_engine.c @@ -65,6 +65,7 @@ int dma_nwl_start_engine(nwl_dma_t *ctx, pcilib_dma_engine_t dma) { if (info->started) return 0; + // This will only successed if there are no parallel access to DMA engine err = dma_nwl_allocate_engine_buffers(ctx, info); if (err) { @@ -77,6 +78,7 @@ int dma_nwl_start_engine(nwl_dma_t *ctx, pcilib_dma_engine_t dma) { info->preserve = 1; // Acknowledge asserted engine interrupts + nwl_read_register(val, ctx, info->base_addr, REG_DMA_ENG_CTRL_STATUS); if (val & DMA_ENG_INT_ACTIVE_MASK) { val |= DMA_ENG_ALLINT_MASK; nwl_write_register(val, ctx, base, REG_DMA_ENG_CTRL_STATUS); -- cgit v1.2.3