]> 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)
commit2ae8eec7e1fcad4961efe78e7617dcfe40dde1df
treed2e03103101f54b9161f01d839953dfcad229048
parentcc8a31f727f074a9601f9414f4e2678c3a68d034
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