Commit 3edd1f2b authored by Federico Vaga's avatar Federico Vaga

drv: reduce DMA transfer to maximum PAGE_SIZE

Apparently the gn4124 does not handle properly bigger pages. I think I have
seen this before in the ADC and indeed thare we do PAGE_SIZE transfers.
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent b4eb3036
......@@ -267,7 +267,7 @@ static void ft_readout_dma_start(struct fmctdc_dev *ft, int channel)
count = 0;
while (total > 0) {
cset->ti->nsamples = min((unsigned long)total,
KMALLOC_MAX_SIZE);
PAGE_SIZE / cset->ssize);
zio_cset_busy_set(cset, 1);
zio_arm_trigger(cset->ti); /* actually a fire */
ft_readout_dma_run(cset, base_cur, count, cset->ti->nsamples);
......
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