Commit 4499a24dec00e037da7d09caccad45e7594a9c19
1 parent
b57014def9
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff
drivers/dma/dmaengine.c
... | ... | @@ -632,10 +632,14 @@ |
632 | 632 | #if defined(CONFIG_ASYNC_XOR) || defined(CONFIG_ASYNC_XOR_MODULE) |
633 | 633 | if (!dma_has_cap(DMA_XOR, device->cap_mask)) |
634 | 634 | return false; |
635 | + if (!dma_has_cap(DMA_XOR_VAL, device->cap_mask)) | |
636 | + return false; | |
635 | 637 | #endif |
636 | 638 | |
637 | 639 | #if defined(CONFIG_ASYNC_PQ) || defined(CONFIG_ASYNC_PQ_MODULE) |
638 | 640 | if (!dma_has_cap(DMA_PQ, device->cap_mask)) |
641 | + return false; | |
642 | + if (!dma_has_cap(DMA_PQ_VAL, device->cap_mask)) | |
639 | 643 | return false; |
640 | 644 | #endif |
641 | 645 |