aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-11-19 19:10:25 -0500
committerDan Williams <dan.j.williams@intel.com>2009-11-20 01:21:03 -0500
commit4499a24dec00e037da7d09caccad45e7594a9c19 (patch)
treed336eb5f67a2873bcd7e43ef64d5d149283e7e0f
parentb57014def9afc2bd8a62299d2f51b77dad5ae0c7 (diff)
dmaengine: include xor/pq validate in device_has_all_tx_types()
A channel must include these capabilities to satisfy ASYNC_TX_DISABLE_CHANNEL_SWITCH. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r--drivers/dma/dmaengine.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c
index bd0b248de2cf..b6442f09d0fe 100644
--- a/drivers/dma/dmaengine.c
+++ b/drivers/dma/dmaengine.c
@@ -632,11 +632,15 @@ static bool device_has_all_tx_types(struct dma_device *device)
632 #if defined(CONFIG_ASYNC_XOR) || defined(CONFIG_ASYNC_XOR_MODULE) 632 #if defined(CONFIG_ASYNC_XOR) || defined(CONFIG_ASYNC_XOR_MODULE)
633 if (!dma_has_cap(DMA_XOR, device->cap_mask)) 633 if (!dma_has_cap(DMA_XOR, device->cap_mask))
634 return false; 634 return false;
635 if (!dma_has_cap(DMA_XOR_VAL, device->cap_mask))
636 return false;
635 #endif 637 #endif
636 638
637 #if defined(CONFIG_ASYNC_PQ) || defined(CONFIG_ASYNC_PQ_MODULE) 639 #if defined(CONFIG_ASYNC_PQ) || defined(CONFIG_ASYNC_PQ_MODULE)
638 if (!dma_has_cap(DMA_PQ, device->cap_mask)) 640 if (!dma_has_cap(DMA_PQ, device->cap_mask))
639 return false; 641 return false;
642 if (!dma_has_cap(DMA_PQ_VAL, device->cap_mask))
643 return false;
640 #endif 644 #endif
641 645
642 return true; 646 return true;