]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: xilinx_dma: autodetect whether the HW supports scatter-gather
authorAndrea Merello <andrea.merello@gmail.com>
Tue, 20 Nov 2018 15:31:49 +0000 (16:31 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 7 Jan 2019 04:23:12 +0000 (09:53 +0530)
commit5c8e01c27690d4b214b28aebf83651c05f38b853
treed2e03103101f54b9161f01d839953dfcad229048
parent8270223e6fa9a9d9e691ca2534c7bad0132e4ef8
dmaengine: xilinx_dma: autodetect whether the HW supports scatter-gather

The AXIDMA and CDMA HW can be either direct-access or scatter-gather
version. These are SW incompatible.

The driver can handle both versions: a DT property was used to
tell the driver whether to assume the HW is in scatter-gather mode.

This patch makes the driver to autodetect this information. The DT
property is not required anymore.

No changes for VDMA.

Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: devicetree@vger.kernel.org
Cc: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xilinx_dma.c