writel(0, mite->mite_io_addr + MITE_DAR(channel));
/* the link is 32bits */
- lkcr = CR_RL(64) | CR_ASEQUP | CR_PSIZE16;
+ lkcr = CR_RL(64) | CR_ASEQUP | CR_PSIZE32;
writel(lkcr, mite->mite_io_addr + MITE_LKCR(channel));
/* starting address for link chaining */
* conservative value returned by mite_bytes_transferred */
return;
}
- mb();
comedi_buf_write_free(async, count);
async->scan_progress += count;
static int ni_ai_poll(comedi_device *dev,comedi_subdevice *s)
{
- unsigned long flags;
+ unsigned long flags = 0;
int count;
// lock to avoid race with interrupt handler
- if(in_interrupt() == 0)
+ if(in_interrupt() == 0)
comedi_spin_lock_irqsave(&dev->spinlock, flags);
#ifndef PCIDMA
ni_handle_fifo_dregs(dev);