mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 13:27:57 +02:00
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>
This commit is contained in:
parent
1c398492b2
commit
ebf744fdc0
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user