]> 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)
commit0c980801bbcb190a91c7c7a6b8735a1c84ef01cd
tree9bf9984f13bd4ceedd6acea51d62a1abc826f8f4
parent165797f6d0e8ee6e0d12501975ff4fe222c9484d
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