]> git.baikalelectronics.ru Git - kernel.git/commit
Blackfin: convert DMA mutex to an atomic and drop redundant code
authorMike Frysinger <vapier@gentoo.org>
Fri, 9 Oct 2009 22:18:12 +0000 (22:18 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 15 Dec 2009 05:14:18 +0000 (00:14 -0500)
commit7925bdf63978e91ab17918a965728c9bb43fef9d
treee296f8daa8a7ba957d0ae080c71212f77172d382
parentf0a66d90914dbf145b09058ecc96b1c36a526e39
Blackfin: convert DMA mutex to an atomic and drop redundant code

The DMA channel status field was encoding redundant info wrt the DMA MMR
config register, and it was doing an incomplete job of checking all DMA
channels (some drivers write directly to the config register).  So drop
the tristate field in favor of a binary atomic field.  This simplifies
the code in general, removes the implicit need for sleeping, and forces
the suspend code to handle all channels properly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/dma.h
arch/blackfin/kernel/bfin_dma_5xx.c