Commit 344c890a authored by Federico Vaga's avatar Federico Vaga

sw:drv: add debug print to check DMA parameters

Signed-off-by: Federico Vaga's avatarFederico Vaga <>
parent c4e3a399
......@@ -161,6 +161,9 @@ static int spec_fpga_dbg_dma_transfer(struct spec_fpga_dbg_dma *dbgdma,
struct scatterlist *sg;
int i;
"arg: {dir: %d, size: %ld, offset: 0x%08llx}\n",
dir, count, offset);
max_segment = dma_get_max_seg_size(dbgdma->dchan->device->dev) & PAGE_MASK;
err = sg_alloc_table(&sgt, (count / max_segment) + 1, GFP_KERNEL);
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