diff mbox

[1/2] dw_mmc: Run card detect tasklet during slot initialisation.

Message ID AANLkTi=NFjSaGFOrJm24nHB_ngEyqA6eQ4g835yQDMdX@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Will Newton Feb. 10, 2011, 10:40 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 2fcc825..0b0bedd 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -1441,6 +1441,13 @@  static int __init dw_mci_init_slot(struct
dw_mci *host, unsigned int id)
 	/* Card initially undetected */
 	slot->last_detect_state = 0;

+
+	/*
+	 * Card may have been plugged in prior to boot so we
+	 * need to run the detect tasklet
+	 */
+	tasklet_schedule(&host->card_tasklet);
+
 	return 0;
 }