]> granicus.if.org Git - esp-idf/commitdiff
sdmmc: send init sequence before CMD0
authorIvan Grokhotkov <ivan@espressif.com>
Tue, 16 May 2017 06:19:00 +0000 (14:19 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Wed, 11 Apr 2018 03:06:50 +0000 (11:06 +0800)
components/driver/sdmmc_transaction.c

index 16a27d5a1f9192f9824bd45cf534bfe94a52bf4c..31e76ac6d9f4bbcf780e4815ed169a6b2f932fce 100644 (file)
@@ -250,6 +250,9 @@ static sdmmc_hw_cmd_t make_hw_cmd(sdmmc_command_t* cmd)
         res.send_auto_stop = 1;
         res.data_expected = 1;
     }
+    if (cmd->opcode == MMC_GO_IDLE_STATE) {
+        res.send_init = 1;
+    }
     if (cmd->flags & SCF_RSP_PRESENT) {
         res.response_expect = 1;
         if (cmd->flags & SCF_RSP_136) {