Commit f1fb504e authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

wip

parent 2d80667f
......@@ -295,10 +295,16 @@ static void ft_dma_work(struct work_struct *work)
a simple, crude spinlock (David, Fede, fixme please ;-) */
if (!spin_trylock(&ft->dma_lock))
{
printk("dma already in progress\n");
ft_irq_enable_restore(ft);
return;
}
irq_stat = ft_ioread(ft, ft->ft_irq_base + TDC_EIC_REG_EIC_ISR);
printk("dma read %x\n", irq_stat);
irq_stat &= TDC_EIC_EIC_IMR_TDC_DMA_MASK;
irq_stat >>= TDC_EIC_EIC_IMR_TDC_DMA_SHIFT;
ft->dma_chan_mask = irq_stat;
......
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