sd: Remember to reset .expecting_acmd on reset.

Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
This commit is contained in:
Andrzej Zaborowski 2011-12-21 05:04:21 +01:00
parent fcfa9351c5
commit 3799ce4ab6

View File

@ -422,6 +422,7 @@ static void sd_reset(SDState *sd, BlockDriverState *bdrv)
sd->size = size; sd->size = size;
sd->blk_len = 0x200; sd->blk_len = 0x200;
sd->pwd_len = 0; sd->pwd_len = 0;
sd->expecting_acmd = 0;
} }
static void sd_cardchange(void *opaque, bool load) static void sd_cardchange(void *opaque, bool load)