diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-07-28 14:44:05 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-09-08 17:29:55 -0700 |
commit | a6a39ca1badbeafc16941fcf2c1010c8c65c8ddc (patch) | |
tree | 1f6e4bf5e5ab831ce9cb6de645a1f03545c8cf0a | |
parent | a0587bcf3e64029a4da2a5666cad18df38db0d56 (diff) | |
download | linux-stable-a6a39ca1badbeafc16941fcf2c1010c8c65c8ddc.tar.gz linux-stable-a6a39ca1badbeafc16941fcf2c1010c8c65c8ddc.tar.bz2 linux-stable-a6a39ca1badbeafc16941fcf2c1010c8c65c8ddc.zip |
ioat: fix self test interrupts
If a callback is to be attached to a descriptor the channel needs to
know at ->prep time so it can set the interrupt enable bit. This is in
preparation for moving descriptor ioat2 descriptor preparation from
->submit to ->prep.
Signed-off-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r-- | drivers/dma/ioat/dma.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dma/ioat/dma.c b/drivers/dma/ioat/dma.c index c4333be07608..cc5c557ddc83 100644 --- a/drivers/dma/ioat/dma.c +++ b/drivers/dma/ioat/dma.c @@ -1313,7 +1313,8 @@ static int ioat_dma_self_test(struct ioatdma_device *device) dma_src = dma_map_single(dev, src, IOAT_TEST_SIZE, DMA_TO_DEVICE); dma_dest = dma_map_single(dev, dest, IOAT_TEST_SIZE, DMA_FROM_DEVICE); - flags = DMA_COMPL_SRC_UNMAP_SINGLE | DMA_COMPL_DEST_UNMAP_SINGLE; + flags = DMA_COMPL_SRC_UNMAP_SINGLE | DMA_COMPL_DEST_UNMAP_SINGLE | + DMA_PREP_INTERRUPT; tx = device->common.device_prep_dma_memcpy(dma_chan, dma_dest, dma_src, IOAT_TEST_SIZE, flags); if (!tx) { |