sd: Remember to reset .expecting_acmd on reset.
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
This commit is contained in:
parent
fcfa9351c5
commit
3799ce4ab6
1
hw/sd.c
1
hw/sd.c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user