[qemu-xen master] hw/sd/pl181: Reset SD card on controller reset
Author: Peter Maydell <[hidden email]>
AuthorDate: Tue Jan 16 13:28:11 2018 +0000
Commit: Michael Roth <[hidden email]>
CommitDate: Tue Jan 23 16:33:39 2018 -0600
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.
/* We can assume our GPIO outputs have been wired up now */
sd_set_cb(s->card, s->cardstatus, s->cardstatus);
+ /* Since we're still using the legacy SD API the card is not plugged
+ * into any bus, and we must reset it manually.
static void pl181_init(Object *obj)
generated by git-patchbot for /home/xen/git/qemu-xen.git#master