mmc: protect the tmio_mmc driver against a theoretical race
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 21 Apr 2011 07:20:16 +0000 (07:20 +0000)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 03:53:52 +0000 (23:53 -0400)
commitdf3ef2d3c92c0a562ebde3699af7d12401fddf60
tree4969fcb7e716bcedd8634ccfdf14e3d1f274abee
parentfaca6648e6f9659400bdafb985b50ba41f1a23b5
mmc: protect the tmio_mmc driver 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>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/tmio_mmc.h
drivers/mmc/host/tmio_mmc_pio.c