mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-14 14:49:22 +02:00
f02708e791
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25747 3c298f89-4303-0410-b956-a3cf2f4a3e73
56 lines
1.8 KiB
Diff
56 lines
1.8 KiB
Diff
Index: linux-2.6.38-rc6/drivers/mmc/host/omap.c
|
|
===================================================================
|
|
--- linux-2.6.38-rc6.orig/drivers/mmc/host/omap.c 2011-02-22 02:25:52.000000000 +0100
|
|
+++ linux-2.6.38-rc6/drivers/mmc/host/omap.c 2011-02-27 00:58:54.735744872 +0100
|
|
@@ -1456,6 +1456,7 @@
|
|
host->dma_ch = -1;
|
|
|
|
host->irq = irq;
|
|
+ host->reg_shift = (cpu_is_omap7xx() ? 1 : 2);
|
|
host->phys_base = host->mem_res->start;
|
|
host->virt_base = ioremap(res->start, res->end - res->start + 1);
|
|
if (!host->virt_base)
|
|
@@ -1495,7 +1496,9 @@
|
|
}
|
|
}
|
|
|
|
- host->reg_shift = (cpu_is_omap7xx() ? 1 : 2);
|
|
+ /* Make sure the detect workqueue was run at least once. */
|
|
+ printk(KERN_INFO "OMAP-mmc: waiting for cards...\n");
|
|
+ mmc_flush_scheduled_work();
|
|
|
|
return 0;
|
|
|
|
Index: linux-2.6.38-rc6/drivers/mmc/core/core.c
|
|
===================================================================
|
|
--- linux-2.6.38-rc6.orig/drivers/mmc/core/core.c 2011-02-22 02:25:52.000000000 +0100
|
|
+++ linux-2.6.38-rc6/drivers/mmc/core/core.c 2011-02-27 00:57:32.633556994 +0100
|
|
@@ -75,12 +75,13 @@
|
|
}
|
|
|
|
/*
|
|
- * Internal function. Flush all scheduled work from the MMC work queue.
|
|
+ * Flush all scheduled work from the MMC work queue.
|
|
*/
|
|
-static void mmc_flush_scheduled_work(void)
|
|
+void mmc_flush_scheduled_work(void)
|
|
{
|
|
flush_workqueue(workqueue);
|
|
}
|
|
+EXPORT_SYMBOL(mmc_flush_scheduled_work);
|
|
|
|
/**
|
|
* mmc_request_done - finish processing an MMC request
|
|
Index: linux-2.6.38-rc6/include/linux/mmc/host.h
|
|
===================================================================
|
|
--- linux-2.6.38-rc6.orig/include/linux/mmc/host.h 2011-02-22 02:25:52.000000000 +0100
|
|
+++ linux-2.6.38-rc6/include/linux/mmc/host.h 2011-02-27 00:57:32.633556994 +0100
|
|
@@ -326,5 +326,7 @@
|
|
return host->pm_flags & MMC_PM_KEEP_POWER;
|
|
}
|
|
|
|
+void mmc_flush_scheduled_work(void);
|
|
+
|
|
#endif
|
|
|