From 4fef89af537d1af5b2e7bdebfd8ee7c69cd16404 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 5 Jul 2022 11:29:05 +0200 Subject: [PATCH] software/liblitesdcard/spisdcard: Update comment. --- litex/soc/software/liblitesdcard/spisdcard.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/litex/soc/software/liblitesdcard/spisdcard.c b/litex/soc/software/liblitesdcard/spisdcard.c index a58a6c3bb..da1b17937 100644 --- a/litex/soc/software/liblitesdcard/spisdcard.c +++ b/litex/soc/software/liblitesdcard/spisdcard.c @@ -172,7 +172,10 @@ static uint8_t spisdcardsend_cmd(uint8_t cmd, uint32_t arg) return byte; } - /* Select the card and wait for it, except for CMD12: STOP_TRANSMISSION */ + /* Select the card and wait for it, except for: + - CMD12: STOP_TRANSMISSION. + - CMD0 : GO_IDLE_STATE. + */ if (cmd != CMD12 && cmd != CMD0) { spisdcard_deselect(); if (spisdcard_select() == 0)