summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-17 23:22:00 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-17 23:22:00 +0200
commitbd6a3cb1cc31c74d36c1afaf1fbcc63ab18f993a (patch)
tree45d7a55d8ff880b638c78ae92971e125eec0d40f
parent268dfaa6674b3e1c4d5fbc605aea4a55ae2aa193 (diff)
downloadpcitool-bd6a3cb1cc31c74d36c1afaf1fbcc63ab18f993a.tar.gz
pcitool-bd6a3cb1cc31c74d36c1afaf1fbcc63ab18f993a.tar.bz2
pcitool-bd6a3cb1cc31c74d36c1afaf1fbcc63ab18f993a.tar.xz
pcitool-bd6a3cb1cc31c74d36c1afaf1fbcc63ab18f993a.zip
Correctly check if DMA is already enabled
-rw-r--r--dma/nwl_engine_buffers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dma/nwl_engine_buffers.h b/dma/nwl_engine_buffers.h
index 6b794c6..77484a2 100644
--- a/dma/nwl_engine_buffers.h
+++ b/dma/nwl_engine_buffers.h
@@ -129,7 +129,7 @@ static int dma_nwl_allocate_engine_buffers(nwl_dma_t *ctx, pcilib_nwl_engine_des
else {
nwl_read_register(val, ctx, info->base_addr, REG_DMA_ENG_CTRL_STATUS);
- if (val&DMA_ENG_RUNNING == 0) pcilib_warning("Lost DMA buffers are found (DMA engine is stopped), reinitializing...");
+ if ((val&DMA_ENG_RUNNING) == 0) pcilib_warning("Lost DMA buffers are found (DMA engine is stopped), reinitializing...");
else preserve = 1;
}
}