Skip to content

Commit

Permalink
Blackfin: add dma_disable_irq_nosync() API for irq handlers
Browse files Browse the repository at this point in the history
Some IRQ handlers need to disable a DMA channel without waiting.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  • Loading branch information
Barry Song authored and Mike Frysinger committed Mar 9, 2010
1 parent 3750411 commit 4ab069e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/blackfin/include/asm/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ static inline void dma_disable_irq(unsigned int channel)
{
disable_irq(dma_ch[channel].irq);
}
static inline void dma_disable_irq_nosync(unsigned int channel)
{
disable_irq_nosync(dma_ch[channel].irq);
}
static inline void dma_enable_irq(unsigned int channel)
{
enable_irq(dma_ch[channel].irq);
Expand Down

0 comments on commit 4ab069e

Please sign in to comment.