• Mike Frysinger's avatar
    Blackfin: convert DMA mutex to an atomic and drop redundant code · d2e015d6
    Mike Frysinger authored
    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: default avatarMike Frysinger <vapier@gentoo.org>
    d2e015d6
bfin_dma_5xx.c 13.2 KB