diff options
author | 2025-03-14 14:47:15 +0100 | |
---|---|---|
committer | 2025-04-17 20:45:20 +0530 | |
commit | ebf744fdc080763a243ea6b1a719b1857474a977 (patch) | |
tree | 36d085607361b61aa4d0efa7328fc4dff34cc667 /drivers/dma | |
parent | MAINTAINERS: Maintainer change for hisi_dma (diff) | |
download | linux-rng-ebf744fdc080763a243ea6b1a719b1857474a977.tar.xz linux-rng-ebf744fdc080763a243ea6b1a719b1857474a977.zip |
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 <thomas.gessler@brueckmann-gmbh.de>
Tested-by: Folker Schwesinger <dev@folker-schwesinger.de>
Link: https://lore.kernel.org/r/20250314134717.703287-1-thomas.gessler@brueckmann-gmbh.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/xilinx/xilinx_dma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/xilinx/xilinx_dma.c b/drivers/dma/xilinx/xilinx_dma.c index 3ad44afd0e74..cf4cd2f36e34 100644 --- a/drivers/dma/xilinx/xilinx_dma.c +++ b/drivers/dma/xilinx/xilinx_dma.c @@ -3115,6 +3115,8 @@ static int xilinx_dma_probe(struct platform_device *pdev) } } + dma_set_max_seg_size(xdev->dev, xdev->max_buffer_len); + if (xdev->dma_config->dmatype == XDMA_TYPE_AXIDMA) { xdev->has_axistream_connected = of_property_read_bool(node, "xlnx,axistream-connected"); |