Commit d484568a authored by Federico Vaga's avatar Federico Vaga

fixup! sw:drv: limit DMA segment size to the maximum supported by the system

parent 11dc5ac0
......@@ -322,8 +322,13 @@ static int zfad_dma_prep_slave_sg(struct dma_chan *dchan,
if (err)
goto err_to_pages;
/*
* max_segment_size = dma_get_max_seg_size(dchan->device->dev);
* Fix it to PAGE_SIZE because of an HDL issue
*/
max_segment_size = PAGE_SIZE;
/* With some version we cannot use the version from the Linux kernel */
max_segment_size = dma_get_max_seg_size(dchan->device->dev);
fa->sg_alloc_table_from_pages(&zfad_block->sgt, pages, nr_pages,
offset_in_page(zfad_block->block->data),
zfad_block->block->datalen,
......
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