]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: edma: Check the current decriptor first in tx_status()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 28 Apr 2014 19:19:51 +0000 (14:19 -0500)
committerVinod Koul <vinod.koul@intel.com>
Wed, 30 Apr 2014 05:02:15 +0000 (10:32 +0530)
commit1b61a35fff1abefe6e8ecdc947b69cdbe9ee66e0
treeaf4c1aec22c4e52377ea47cdb88ba4da62d3577e
parent23bcf583f6764826ca3ff6a8187ccbdb858a0fb4
dmaengine: edma: Check the current decriptor first in tx_status()

It's likely that the caller investigates the status of a currently
active descriptor. Make that simple check first and only rumage in the
vchan list if that fails.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/edma.c