]> git.baikalelectronics.ru Git - kernel.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)
commitcc8a31f727f074a9601f9414f4e2678c3a68d034
treebedeeefafb4c153660382cab7f730b48a96af886
parent05352a5bc767f3cebd8f312f939c0fd3ce5b1a6c
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