From: Guennadi Liakhovetski Date: Wed, 24 Nov 2010 10:05:12 +0000 (+0000) Subject: mmc: sh_mmcif: switch to completion, fix flags X-Git-Tag: v2.6.38-rc1~462^2~28^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa0787a90c70587db6934547bb7687efc30062c7;p=pandora-kernel.git mmc: sh_mmcif: switch to completion, fix flags In sh_mmcif.c an event is used as a completion, switch over. When a wait_for_completion*_timeout() returns, it suffices to check the remaining time, setting an additional flag before waking up the waiting task only reduces the race window, but does not eliminate it. This patch switches the driver to use a completion to signal an interrupt, the only case, when an interrupt should not wake up the waiter, is when an automatic CMD12 completes. Also fix MODULE_ALIAS. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt --- Reading git-diff-tree failed