]> asedeno.scripts.mit.edu Git - linux.git/commit
dmaengine: xilinx_dma: program hardware supported buffer length
authorRadhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Tue, 20 Nov 2018 15:31:48 +0000 (16:31 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 7 Jan 2019 04:23:11 +0000 (09:53 +0530)
commitae809690b46a71dc56cda5b3b8884c8c41a0df15
treebedeeefafb4c153660382cab7f730b48a96af886
parent7df54dbeb055229f6689161aa90bf00bf4af077e
dmaengine: xilinx_dma: program hardware supported buffer length

AXI-DMA IP supports configurable (c_sg_length_width) buffer length
register width, hence read buffer length (xlnx,sg-length-width) DT
property and ensure that driver doesn't program buffer length
exceeding the supported limit. For VDMA and CDMA there is no change.

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