From: Guennadi Liakhovetski Date: Fri, 15 Apr 2011 18:08:19 +0000 (+0200) Subject: mmc: fix a race between card-detect rescan and clock-gate work instances X-Git-Tag: v2.6.39-rc6~4^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26fc8775b51484d8c0a671198639c6d5ae60533e;p=pandora-kernel.git mmc: fix a race between card-detect rescan and clock-gate work instances Currently there is a race in the MMC core between a card-detect rescan work and the clock-gating work, scheduled from a command completion. Fix it by removing the dedicated clock-gating mutex and using the MMC standard locking mechanism instead. Signed-off-by: Guennadi Liakhovetski Cc: Simon Horman Cc: Magnus Damm Acked-by: Linus Walleij Cc: Signed-off-by: Chris Ball --- Reading git-diff-tree failed