aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc/card/block.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2012-01-21 00:41:28 +0100
committerChris Ball <cjb@laptop.org>2012-02-13 20:39:03 -0500
commit5ba85d95cae3837665241e6df12aea83b6bf7c32 (patch)
tree86ecab1283f528cb4e8ac603434eb50252d93b5f /drivers/mmc/card/block.c
parente3de2be7368d2983bd7f7ddb6e9cf5ea32363128 (diff)
downloadlinux-linaro-stable-5ba85d95cae3837665241e6df12aea83b6bf7c32.tar.gz
mmc: sh_mmcif: fix late delayed work initialisation
If the driver is loaded with a card in the slot, mmc_add_host() will schedule an immediate card-detection work, which will start IO and wait for command completion. Usually the kernel first returns to the sh_mmcif probe function, lets it finish and only then schedules the rescan work. But sometimes, expecially under heavy system load, the work will be scheduled immediately before returning to the probe method. In this case it is important for the driver to be fully prepared for IO. For sh_mmcif this means, that also the timeout work has to be initialised before calling mmc_add_host(). It is also better to prepare interrupts beforehand. Besides, since mmc_add_host() does card-detection itself, there is no need to do it again immediately afterwards. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/card/block.c')
0 files changed, 0 insertions, 0 deletions