Skip to content

Commit ebf744f

Browse files
thgbevinodkoul
authored andcommitted
dmaengine: xilinx_dma: Set max segment size
Set the maximumg DMA segment size from the actual core configuration value. Without this setting, the default value of 64 KiB is reported, and larger sizes cannot be used for IIO DMAEngine buffers. Signed-off-by: Thomas Gessler <[email protected]> Tested-by: Folker Schwesinger <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 1c39849 commit ebf744f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/dma/xilinx/xilinx_dma.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3115,6 +3115,8 @@ static int xilinx_dma_probe(struct platform_device *pdev)
31153115
}
31163116
}
31173117

3118+
dma_set_max_seg_size(xdev->dev, xdev->max_buffer_len);
3119+
31183120
if (xdev->dma_config->dmatype == XDMA_TYPE_AXIDMA) {
31193121
xdev->has_axistream_connected =
31203122
of_property_read_bool(node, "xlnx,axistream-connected");

0 commit comments

Comments
 (0)