diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-17 23:22:00 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-17 23:22:00 +0200 |
commit | bd6a3cb1cc31c74d36c1afaf1fbcc63ab18f993a (patch) | |
tree | 45d7a55d8ff880b638c78ae92971e125eec0d40f /dma | |
parent | 268dfaa6674b3e1c4d5fbc605aea4a55ae2aa193 (diff) | |
download | pcitool-bd6a3cb1cc31c74d36c1afaf1fbcc63ab18f993a.tar.gz pcitool-bd6a3cb1cc31c74d36c1afaf1fbcc63ab18f993a.tar.bz2 pcitool-bd6a3cb1cc31c74d36c1afaf1fbcc63ab18f993a.tar.xz pcitool-bd6a3cb1cc31c74d36c1afaf1fbcc63ab18f993a.zip |
Correctly check if DMA is already enabled
Diffstat (limited to 'dma')
-rw-r--r-- | dma/nwl_engine_buffers.h | 2 |
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; } } |