]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3480768d76d0b56c752b91fa6e2a1df7c04cc64f
tree9bf9984f13bd4ceedd6acea51d62a1abc826f8f4
parentd3a1698ba6ebeffd45c80070af5d2f06955441fd
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