dmaengine/dw_dmac: don't scan descriptors if no xfers in progress
authorJamie Iles <jamie@jamieiles.com>
Fri, 21 Jan 2011 14:11:52 +0000 (14:11 +0000)
committerDan Williams <dan.j.williams@intel.com>
Sun, 30 Jan 2011 07:06:28 +0000 (23:06 -0800)
commit087809fce28f50098d9c3ef1a6865c722f23afd2
tree6b5b36ccfd54c72395803717aac7e8471a17b48e
parente8a7e48bb248a1196484d3f8afa53bded2b24e71
dmaengine/dw_dmac: don't scan descriptors if no xfers in progress

Some hardware (picoChip picoXCell in particular) sometimes has
the block transfer complete bit being set for a channel after the
whole transfer has completed. If we don't have any transfers in the
active list then don't bother to scan the descriptors. This often
happens in normal operation and doesn't require the channel to be
reset.

v2: cleanup whitespace

Signed-off-by: Jamie Iles <jamie.iles@picochip.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/dw_dmac.c