Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287222
b: refs/heads/master
c: d07a74a
h: refs/heads/master
v: v3
  • Loading branch information
Dr. David Alan Gilbert authored and Dan Williams committed Jan 23, 2012
1 parent 00cbfa0 commit 45cc855
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bda3a47c886664e86ee14eb79e9072b9e341f575
refs/heads/master: d07a74a546981a09ba490936645fbf0d1340b96c
4 changes: 2 additions & 2 deletions trunk/drivers/dma/at_hdmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ static int __init at_dma_probe(struct platform_device *pdev)

tasklet_init(&atchan->tasklet, atc_tasklet,
(unsigned long)atchan);
atc_enable_chan_irq(atdma, i);
atc_enable_irq(atchan);
}

/* set base routines */
Expand Down Expand Up @@ -1410,7 +1410,7 @@ static int __exit at_dma_remove(struct platform_device *pdev)
struct at_dma_chan *atchan = to_at_dma_chan(chan);

/* Disable interrupts */
atc_disable_chan_irq(atdma, chan->chan_id);
atc_disable_irq(atchan);
tasklet_disable(&atchan->tasklet);

tasklet_kill(&atchan->tasklet);
Expand Down
17 changes: 9 additions & 8 deletions trunk/drivers/dma/at_hdmac_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -327,27 +327,28 @@ static void atc_dump_lli(struct at_dma_chan *atchan, struct at_lli *lli)
}


static void atc_setup_irq(struct at_dma *atdma, int chan_id, int on)
static void atc_setup_irq(struct at_dma_chan *atchan, int on)
{
u32 ebci;
struct at_dma *atdma = to_at_dma(atchan->chan_common.device);
u32 ebci;

/* enable interrupts on buffer transfer completion & error */
ebci = AT_DMA_BTC(chan_id)
| AT_DMA_ERR(chan_id);
ebci = AT_DMA_BTC(atchan->chan_common.chan_id)
| AT_DMA_ERR(atchan->chan_common.chan_id);
if (on)
dma_writel(atdma, EBCIER, ebci);
else
dma_writel(atdma, EBCIDR, ebci);
}

static void atc_enable_chan_irq(struct at_dma *atdma, int chan_id)
static inline void atc_enable_irq(struct at_dma_chan *atchan)
{
atc_setup_irq(atdma, chan_id, 1);
atc_setup_irq(atchan, 1);
}

static void atc_disable_chan_irq(struct at_dma *atdma, int chan_id)
static inline void atc_disable_irq(struct at_dma_chan *atchan)
{
atc_setup_irq(atdma, chan_id, 0);
atc_setup_irq(atchan, 0);
}


Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/dma/dmatest.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ static int dmatest_add_channel(struct dma_chan *chan)
}
if (dma_has_cap(DMA_PQ, dma_dev->cap_mask)) {
cnt = dmatest_add_threads(dtc, DMA_PQ);
thread_count += cnt > 0 ?: 0;
thread_count += cnt > 0 ? cnt : 0;
}

pr_info("dmatest: Started %u threads using %s\n",
Expand Down

0 comments on commit 45cc855

Please sign in to comment.