]> Zhao Yanbai Git Server - minix.git/commitdiff
mmc:Small fixup to run the driver on hardware. 59/59/2
authorKees Jongenburger <kees.jongenburger@gmail.com>
Mon, 8 Oct 2012 14:02:32 +0000 (16:02 +0200)
committerKees Jongenburger <kees.jongenburger@gmail.com>
Tue, 16 Oct 2012 06:40:43 +0000 (08:40 +0200)
Change-Id: I8e8d048da7cdfce5c9f2091969b0db5240e3e89f

drivers/mmc/mmchost_mmchs.c

index 2ee0425afcb6ab62de3aef6bc8b2e50e2cfcd73c..93b5f3ba941b8fbbc720c225baa937d9a021be43 100644 (file)
@@ -680,6 +680,11 @@ mmchs_card_initialize(struct sd_slot *slot)
        memset(card, 0, sizeof(struct sd_card));
        card->slot = slot;
 
+       if (card_goto_idle_state()) {
+               printf("Failed to go idle state\n");
+               return NULL;
+       }
+
        if (card_identification()) {
                printf("Failed to do card_identification\n");
                return NULL;