1 Index: linux-2.6.38-rc6/drivers/mmc/host/omap.c
2 ===================================================================
3 --- linux-2.6.38-rc6.orig/drivers/mmc/host/omap.c 2011-02-22 02:25:52.000000000 +0100
4 +++ linux-2.6.38-rc6/drivers/mmc/host/omap.c 2011-02-27 00:58:54.735744872 +0100
9 + host->reg_shift = (cpu_is_omap7xx() ? 1 : 2);
10 host->phys_base = host->mem_res->start;
11 host->virt_base = ioremap(res->start, res->end - res->start + 1);
17 - host->reg_shift = (cpu_is_omap7xx() ? 1 : 2);
18 + /* Make sure the detect workqueue was run at least once. */
19 + printk(KERN_INFO "OMAP-mmc: waiting for cards...\n");
20 + mmc_flush_scheduled_work();
24 Index: linux-2.6.38-rc6/drivers/mmc/core/core.c
25 ===================================================================
26 --- linux-2.6.38-rc6.orig/drivers/mmc/core/core.c 2011-02-22 02:25:52.000000000 +0100
27 +++ linux-2.6.38-rc6/drivers/mmc/core/core.c 2011-02-27 00:57:32.633556994 +0100
32 - * Internal function. Flush all scheduled work from the MMC work queue.
33 + * Flush all scheduled work from the MMC work queue.
35 -static void mmc_flush_scheduled_work(void)
36 +void mmc_flush_scheduled_work(void)
38 flush_workqueue(workqueue);
40 +EXPORT_SYMBOL(mmc_flush_scheduled_work);
43 * mmc_request_done - finish processing an MMC request
44 Index: linux-2.6.38-rc6/include/linux/mmc/host.h
45 ===================================================================
46 --- linux-2.6.38-rc6.orig/include/linux/mmc/host.h 2011-02-22 02:25:52.000000000 +0100
47 +++ linux-2.6.38-rc6/include/linux/mmc/host.h 2011-02-27 00:57:32.633556994 +0100
49 return host->pm_flags & MMC_PM_KEEP_POWER;
52 +void mmc_flush_scheduled_work(void);