]> 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)
commit8270223e6fa9a9d9e691ca2534c7bad0132e4ef8
treebedeeefafb4c153660382cab7f730b48a96af886
parent5e56e25c2790b5cadcecdd618b0b2b8db04029a8
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