summary refs log tree commit diff stats
path: root/hw/sd/omap_mmc.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2018-01-16 13:28:11 +0000
committerPeter Maydell <peter.maydell@linaro.org>2018-01-16 13:28:11 +0000
commit0cb57cc701839e7358918d5f2922ccbc04d28d17 (patch)
tree52cfbad087679958fdc82c9e36700b863dfa2c54 /hw/sd/omap_mmc.c
parent3b39d734141a71296d08af3d4c32f872fafd782e (diff)
downloadfocaccia-qemu-0cb57cc701839e7358918d5f2922ccbc04d28d17.tar.gz
focaccia-qemu-0cb57cc701839e7358918d5f2922ccbc04d28d17.zip
hw/sd/pl181: Reset SD card on controller reset
Since pl181 is still using the legacy SD card API, the SD
card created by sd_init() is not plugged into any bus. This
means that the controller has to reset it manually.

Failing to do this mostly didn't affect the guest since the
guest typically does a programmed SD card reset as part of
its SD controller driver initialization, but meant that
migration failed because it's only in sd_reset() that we
set up the wpgrps_size field.

Cc: qemu-stable@nongnu.org
Fixes: https://bugs.launchpad.net/qemu/+bug/1739378
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 1515506513-31961-2-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'hw/sd/omap_mmc.c')
0 files changed, 0 insertions, 0 deletions