~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/staging/comedi/drivers/gsc_hpdi.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1031
1031
                writel(hpdi_intr_status,
1032
1032
                       priv(dev)->hpdi_iobase + INTERRUPT_STATUS_REG);
1033
1033
        }
1034
 
        /*  spin lock makes sure noone else changes plx dma control reg */
 
1034
        /*  spin lock makes sure no one else changes plx dma control reg */
1035
1035
        spin_lock_irqsave(&dev->spinlock, flags);
1036
1036
        dma0_status = readb(priv(dev)->plx9080_iobase + PLX_DMA0_CS_REG);
1037
1037
        if (plx_status & ICS_DMA0_A) {  /*  dma chan 0 interrupt */
1045
1045
        }
1046
1046
        spin_unlock_irqrestore(&dev->spinlock, flags);
1047
1047
 
1048
 
        /*  spin lock makes sure noone else changes plx dma control reg */
 
1048
        /*  spin lock makes sure no one else changes plx dma control reg */
1049
1049
        spin_lock_irqsave(&dev->spinlock, flags);
1050
1050
        dma1_status = readb(priv(dev)->plx9080_iobase + PLX_DMA1_CS_REG);
1051
1051
        if (plx_status & ICS_DMA1_A) {  /*  XXX *//*  dma chan 1 interrupt */