ioatdma: allow all channels to have irq coalescing support
authorDave Jiang <dave.jiang@intel.com>
Tue, 26 Feb 2013 16:20:36 +0000 (09:20 -0700)
committerVinod Koul <vinod.koul@intel.com>
Mon, 15 Apr 2013 04:21:16 +0000 (09:51 +0530)
Looks like only the RAID channels are allowed to have irq coalescing support
in the existing code. Fixing that. The ioat3 cleanup code can handle memcpy
ops anyways

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Acked-by: Dan Williams <djbw@fb.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ioat/dma_v3.c

index dc8dcfb7a8a6053424c4fb39804877d3e5df7596..a1dcfb2670f716ddc89bb0bc1b0e4c9bc3b0c8da 100644 (file)
@@ -1331,15 +1331,9 @@ int ioat3_dma_probe(struct ioatdma_device *device, int dca)
        }
 
 
-       if (is_raid_device) {
-               dma->device_tx_status = ioat3_tx_status;
-               device->cleanup_fn = ioat3_cleanup_event;
-               device->timer_fn = ioat3_timer_event;
-       } else {
-               dma->device_tx_status = ioat_dma_tx_status;
-               device->cleanup_fn = ioat2_cleanup_event;
-               device->timer_fn = ioat2_timer_event;
-       }
+       dma->device_tx_status = ioat3_tx_status;
+       device->cleanup_fn = ioat3_cleanup_event;
+       device->timer_fn = ioat3_timer_event;
 
        #ifdef CONFIG_ASYNC_TX_DISABLE_PQ_VAL_DMA
        dma_cap_clear(DMA_PQ_VAL, dma->cap_mask);