From: Maxime Ripard Date: Mon, 17 Nov 2014 13:42:04 +0000 (+0100) Subject: dmaengine: Create a generic dma_slave_caps callback X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~48^2~27^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb8cea513c80db1dfe2dce468d2d0772005bb9a1;p=pandora-kernel.git dmaengine: Create a generic dma_slave_caps callback dma_slave_caps is very important to the generic layers that might interact with dmaengine, such as ASoC. Unfortunately, it has been added as yet another dma_device callback, and most of the existing drivers haven't implemented it, reducing its reliability. Introduce a generic behaviour to implement this, that rely on both the split of device_control to derive which functions are supported and on new variables to be set in the dma_device structure. These variables holds what used to be the capabilities, that were set per-channel. However, this proved to be a bit overkill, since every driver filling these so far were hardcoding it, disregarding which channel was actually given. Signed-off-by: Maxime Ripard Acked-by: Laurent Pinchart Signed-off-by: Vinod Koul --- Reading git-diff-tree failed