summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorSergey Yanovich <ynvich@gmail.com>2013-03-14 05:23:13 +0400
committerChris Ball <cjb@laptop.org>2013-03-22 13:03:29 -0400
commit3500ed90b26a9935b943b5e2e4cd3226600d6b58 (patch)
treed1e12d1a78c2e8cb47360b4fe1ca0cf48bdbaa5a /drivers/mmc
parentc915568d99f12898aea4e15845cf891a8b5cc575 (diff)
downloadblackbird-obmc-linux-3500ed90b26a9935b943b5e2e4cd3226600d6b58.tar.gz
blackbird-obmc-linux-3500ed90b26a9935b943b5e2e4cd3226600d6b58.zip
mmc: core: wait while adding MMC host to ensure root mounts successfully
MMC hosts are added asynchronously. We need to wait until detect returns to avoid failed root filesystem mounts. VFS: Cannot open root device "mmcblk0p1" or unknown-block(0,0): error -6 Please append a correct "root=" boot option; here are the available partitions: mmc0: host does not support reading read-only switch. assuming write-enable. 1f00 256 mtdblock0 (driver?) 1f01 256 mtdblock1 (driver?) 1f02 2560 mtdblock2 mmc0: new SDHC card at address b368 (driver?) 1f03 29696 mtdblock3 (driver?) 1f04 16384 mtdblock4 mmcblk0: mmc0:b368 USD 3.72 GiB (driver?) mmcblk0: p1 b300 3910656 mmcblk0 driver: mmcblk b301 3906560 mmcblk0p1 00000000-01 Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) Signed-off-by: Sergey Yanovich <ynvich@gmail.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 3bf1c462eded..ad7decc3340a 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -2418,6 +2418,7 @@ void mmc_start_host(struct mmc_host *host)
host->rescan_disable = 0;
mmc_power_up(host);
mmc_detect_change(host, 0);
+ mmc_flush_scheduled_work();
}
void mmc_stop_host(struct mmc_host *host)
OpenPOWER on IntegriCloud