mmc: sh_mmcif: protect against a theoretical race
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 15 Apr 2011 18:30:47 +0000 (18:30 +0000)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 03:53:50 +0000 (23:53 -0400)
commit3b0beafc92406b98cbc2749b8db736f313d390b1
treed782fec514beb5dbb4281adc6d6ec28b7c5915da
parent06e8935febe687e2a561707d4c7ca4245d261dbe
mmc: sh_mmcif: protect against a theoretical race

The MMC subsystem does not guarantee that host driver .request() and
.set_ios() callbacks are serialised. Such concurrent calls, however,
do not have to be meaningfully supported, drivers just have to make
sure to avoid any severe problems.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Simon Horman <horms@verge.net.au>
Cc: Magnus Damm <damm@opensource.se>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sh_mmcif.c