]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/dma/ioat/dma.c
dmaengine: ensure all DMA engine drivers initialize their cookies
[karo-tx-linux.git] / drivers / dma / ioat / dma.c
index 97e100ce43ebebf73af12788c4145227532d7f67..31493d80e0e9dd0538546703317dbf60abe2247e 100644 (file)
@@ -109,6 +109,7 @@ void ioat_init_channel(struct ioatdma_device *device, struct ioat_chan_common *c
        chan->reg_base = device->reg_base + (0x80 * (idx + 1));
        spin_lock_init(&chan->cleanup_lock);
        chan->common.device = dma;
+       dma_cookie_init(&chan->common);
        list_add_tail(&chan->common.device_node, &dma->channels);
        device->idx[idx] = chan;
        init_timer(&chan->timer);