Commit afadd4cb authored by Federico Vaga's avatar Federico Vaga

drv: mask in PAGE_SIZE offsets

The function to allocate the sg table wants to cleanly map transfer by
PAGE_SIZE: make it happy
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 46f2dc86
......@@ -324,6 +324,7 @@ static int zfad_dma_prep_slave_sg(struct dma_chan *dchan,
max_segment_size = dma_get_max_seg_size(dchan->device->dev);
max_segment_size &= PAGE_MASK; /* to make alloc_table happy */
/* With some version we cannot use the version from the Linux kernel */
fa->sg_alloc_table_from_pages(&zfad_block->sgt, pages, nr_pages,
offset_in_page(zfad_block->block->data),
......
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