Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4499a24d authored by Dan Williams's avatar Dan Williams
Browse files

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: default avatarDan Williams <dan.j.williams@intel.com>
parent b57014de
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -632,11 +632,15 @@ static bool device_has_all_tx_types(struct dma_device *device)
	#if defined(CONFIG_ASYNC_XOR) || defined(CONFIG_ASYNC_XOR_MODULE)
	#if defined(CONFIG_ASYNC_XOR) || defined(CONFIG_ASYNC_XOR_MODULE)
	if (!dma_has_cap(DMA_XOR, device->cap_mask))
	if (!dma_has_cap(DMA_XOR, device->cap_mask))
		return false;
		return false;
	if (!dma_has_cap(DMA_XOR_VAL, device->cap_mask))
		return false;
	#endif
	#endif


	#if defined(CONFIG_ASYNC_PQ) || defined(CONFIG_ASYNC_PQ_MODULE)
	#if defined(CONFIG_ASYNC_PQ) || defined(CONFIG_ASYNC_PQ_MODULE)
	if (!dma_has_cap(DMA_PQ, device->cap_mask))
	if (!dma_has_cap(DMA_PQ, device->cap_mask))
		return false;
		return false;
	if (!dma_has_cap(DMA_PQ_VAL, device->cap_mask))
		return false;
	#endif
	#endif


	return true;
	return true;