mmc: sh_mmcif: reset DMA completion immediately before starting DMA
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 12 Dec 2012 14:38:16 +0000 (15:38 +0100)
committerChris Ball <cjb@laptop.org>
Mon, 11 Feb 2013 18:28:35 +0000 (13:28 -0500)
commit90f1cb438e33bb88036649665c2165155561b54f
tree9bf9984f13bd4ceedd6acea51d62a1abc826f8f4
parentaba9d646785c8b1decb1a15ee157b0179a15bef9
mmc: sh_mmcif: reset DMA completion immediately before starting DMA

DMA completion can be signalled from the DMA callback and from the error
handler. If both are called, the completion struct can enter an
inconsistent state. To prevent this move completion initialisation
immediately before activating DMA.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sh_mmcif.c