diff options
author | Barry Song <barry.song@analog.com> | 2010-01-22 05:07:30 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-03-09 00:30:50 -0500 |
commit | 4ab069e5356bae71dda2ce6bb2b2a62a34f2bf25 (patch) | |
tree | 3ff228e89253d39f3b8d0ba6be36804029d0bbe9 | |
parent | 3750411fb7ca96dd11ce8a63f213b60bfe4b5c29 (diff) |
Blackfin: add dma_disable_irq_nosync() API for irq handlers
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>
-rw-r--r-- | arch/blackfin/include/asm/dma.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/dma.h b/arch/blackfin/include/asm/dma.h index bd2e62243abe..2c09b1d50ec9 100644 --- a/arch/blackfin/include/asm/dma.h +++ b/arch/blackfin/include/asm/dma.h | |||
@@ -262,6 +262,10 @@ static inline void dma_disable_irq(unsigned int channel) | |||
262 | { | 262 | { |
263 | disable_irq(dma_ch[channel].irq); | 263 | disable_irq(dma_ch[channel].irq); |
264 | } | 264 | } |
265 | static inline void dma_disable_irq_nosync(unsigned int channel) | ||
266 | { | ||
267 | disable_irq_nosync(dma_ch[channel].irq); | ||
268 | } | ||
265 | static inline void dma_enable_irq(unsigned int channel) | 269 | static inline void dma_enable_irq(unsigned int channel) |
266 | { | 270 | { |
267 | enable_irq(dma_ch[channel].irq); | 271 | enable_irq(dma_ch[channel].irq); |