From 5539f1abc90c28b9ea5e559edc87aa84abb377c3 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 12 Dec 2011 08:22:31 +0100 Subject: Reverts r99 and fixes inheritance of kernel buffers properly --- dma/nwl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dma/nwl.c') diff --git a/dma/nwl.c b/dma/nwl.c index df5d0b8..a638af3 100644 --- a/dma/nwl.c +++ b/dma/nwl.c @@ -27,9 +27,9 @@ int dma_nwl_start(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, pcilib_dm if (dma == PCILIB_DMA_ENGINE_INVALID) return 0; else if (dma > ctx->n_engines) return PCILIB_ERROR_INVALID_BANK; - err = dma_nwl_start_engine(ctx, dma); - if (flags&PCILIB_DMA_FLAG_PERSISTENT) ctx->engines[dma].preserve = 1; + + err = dma_nwl_start_engine(ctx, dma); return err; } -- cgit v1.2.3