Commit 8451407c authored by Federico Vaga's avatar Federico Vaga

drv: bugfix in test_dma_sg

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
Signed-off-by: Tomasz Wlostowski's avatarTomasz Wlostowski <tomasz.wlostowski@cern.ch>
parent 0a416f20
......@@ -401,7 +401,7 @@ static int gn4124_dma_sg(struct fmctdc_dev *ft,
item[i].next_addr_h = item_dma >> 32;
item[i].next_addr_l = item_dma & 0xFFFFFFFFULL;
item[i].attribute = 0;
if (DMA_TO_DEVICE)
if (dir == DMA_TO_DEVICE)
item[i].attribute = GENNUM_DMA_ATTR_DIR;
if (!sg_is_last(sg))
item[i].attribute = GENNUM_DMA_ATTR_MORE;
......
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