This series contains fixes to the SD card emulation that are needed to unblock Tianocore EDK2 UEFI (specifically, the bootloader for Windows on Raspberry Pi 2).
Changes in v2, based on feedback from Peter Crosthwaite: * correct implementation of CMD23 to switch to transfer state on completion * use an actual timer for the power-up delay, rather than relying on the guest polling ACMD41 twice * added patch 3: replace fprintfs with guest error logging Changes in v3: * rebased on Peter Maydell's SD QOMification series: https://lists.gnu.org/archive/html/qemu-devel/2016-01/msg04425.html (although the conflicts are minor -- this could be independent) * use a subsection for the new OCR vmstate (patch 2/3), rather than bumping the version number, to ensure backward-compatibility Changes in v4: * Minor changes to patch 2/3 based on review feedback from Peter Maydell (I'm guessing at the CC list here, since this code appears to be unmaintained. Apologies if I guessed wrong!) Cheers, Andrew Andrew Baumann (3): hw/sd: implement CMD23 (SET_BLOCK_COUNT) for MMC compatibility hw/sd: model a power-up delay, as a workaround for an EDK2 bug hw/sd: use guest error logging rather than fprintf to stderr hw/sd/sd.c | 139 ++++++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 125 insertions(+), 14 deletions(-) mode change 100644 => 100755 hw/sd/sd.c -- 2.5.3