Commit c454d16a authored by Pandith N's avatar Pandith N Committed by Vinod Koul

dmaengine: dw-axi-dmac: Burst length settings

Burst length, DMA HW capability set in dt-binding is now used in driver.
Signed-off-by: default avatarPandith N <pandith.n@intel.com>
Tested-by: default avatarPan Kris <kris.pan@intel.com>
Link: https://lore.kernel.org/r/20210802055454.15192-4-pandith.n@intel.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent f95f3b53
...@@ -1290,7 +1290,7 @@ static int parse_device_properties(struct axi_dma_chip *chip) ...@@ -1290,7 +1290,7 @@ static int parse_device_properties(struct axi_dma_chip *chip)
return -EINVAL; return -EINVAL;
chip->dw->hdata->restrict_axi_burst_len = true; chip->dw->hdata->restrict_axi_burst_len = true;
chip->dw->hdata->axi_rw_burst_len = tmp - 1; chip->dw->hdata->axi_rw_burst_len = tmp;
} }
return 0; return 0;
...@@ -1379,6 +1379,7 @@ static int dw_probe(struct platform_device *pdev) ...@@ -1379,6 +1379,7 @@ static int dw_probe(struct platform_device *pdev)
/* DMA capabilities */ /* DMA capabilities */
dw->dma.chancnt = hdata->nr_channels; dw->dma.chancnt = hdata->nr_channels;
dw->dma.max_burst = hdata->axi_rw_burst_len;
dw->dma.src_addr_widths = AXI_DMA_BUSWIDTHS; dw->dma.src_addr_widths = AXI_DMA_BUSWIDTHS;
dw->dma.dst_addr_widths = AXI_DMA_BUSWIDTHS; dw->dma.dst_addr_widths = AXI_DMA_BUSWIDTHS;
dw->dma.directions = BIT(DMA_MEM_TO_MEM); dw->dma.directions = BIT(DMA_MEM_TO_MEM);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment