2 drivers/mmc/core/core.c | 5 +++--
3 drivers/mmc/host/omap.c | 7 +++++--
4 include/linux/mmc/host.h | 2 ++
5 3 files changed, 10 insertions(+), 4 deletions(-)
7 Index: linux-2.6.37/drivers/mmc/host/omap.c
8 ===================================================================
9 --- linux-2.6.37.orig/drivers/mmc/host/omap.c 2011-01-27 14:16:57.305000007 +0100
10 +++ linux-2.6.37/drivers/mmc/host/omap.c 2011-01-27 14:17:59.807000006 +0100
13 mod_timer(&host->cmd_abort_timer, jiffies + HZ/2);
15 - OMAP_MMC_WRITE(host, CTO, 200);
16 +// OMAP_MMC_WRITE(host, CTO, 200);
17 OMAP_MMC_WRITE(host, ARGL, cmd->arg & 0xffff);
18 OMAP_MMC_WRITE(host, ARGH, cmd->arg >> 16);
19 OMAP_MMC_WRITE(host, IE,
24 + host->reg_shift = (cpu_is_omap7xx() ? 1 : 2);
25 host->phys_base = host->mem_res->start;
26 host->virt_base = ioremap(res->start, res->end - res->start + 1);
32 - host->reg_shift = (cpu_is_omap7xx() ? 1 : 2);
33 + /* Make sure the detect workqueue was run at least once. */
34 + printk(KERN_INFO "OMAP-mmc: waiting for cards...\n");
35 + mmc_flush_scheduled_work();
39 Index: linux-2.6.37/drivers/mmc/core/core.c
40 ===================================================================
41 --- linux-2.6.37.orig/drivers/mmc/core/core.c 2011-01-27 14:16:57.297000007 +0100
42 +++ linux-2.6.37/drivers/mmc/core/core.c 2011-01-27 14:17:59.807000006 +0100
47 - * Internal function. Flush all scheduled work from the MMC work queue.
48 + * Flush all scheduled work from the MMC work queue.
50 -static void mmc_flush_scheduled_work(void)
51 +void mmc_flush_scheduled_work(void)
53 flush_workqueue(workqueue);
55 +EXPORT_SYMBOL(mmc_flush_scheduled_work);
58 * mmc_request_done - finish processing an MMC request
59 Index: linux-2.6.37/include/linux/mmc/host.h
60 ===================================================================
61 --- linux-2.6.37.orig/include/linux/mmc/host.h 2011-01-27 14:16:57.292000007 +0100
62 +++ linux-2.6.37/include/linux/mmc/host.h 2011-01-27 14:17:59.807000006 +0100
64 return !(host->caps & MMC_CAP_NONREMOVABLE) && mmc_assume_removable;
67 +void mmc_flush_scheduled_work(void);