aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>2011-12-21 05:04:21 +0100
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>2011-12-21 05:04:21 +0100
commit3799ce4ab64f578eb818689a276e4f0c73d01fb5 (patch)
tree77b1275a7e90eaf79090a53f6f3c2aac8de160ed /hw
parentfcfa9351c57985ebb54fe6aacd06a270880a561f (diff)
sd: Remember to reset .expecting_acmd on reset.
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/sd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/sd.c b/hw/sd.c
index 2b8ebe4d89..07eb263388 100644
--- a/hw/sd.c
+++ b/hw/sd.c
@@ -422,6 +422,7 @@ static void sd_reset(SDState *sd, BlockDriverState *bdrv)
sd->size = size;
sd->blk_len = 0x200;
sd->pwd_len = 0;
+ sd->expecting_acmd = 0;
}
static void sd_cardchange(void *opaque, bool load)