hw/sd.c: Add missing state change for SD_STATUS, SEND_NUM_WR_BLOCKS
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 18 Feb 2011 13:39:00 +0000 (13:39 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 24 Feb 2011 07:53:36 +0000 (08:53 +0100)
commitfd47f3a01755a7a779956e4f2560c26f9b781fa3
treeffc16ccda4e90f5188c1d4445b55c85f6d272386
parent4a248deeaca5282bf7d5cf56407b1c321f2c63e2
hw/sd.c: Add missing state change for SD_STATUS, SEND_NUM_WR_BLOCKS

The SD_STATUS and SEND_NUM_WR_BLOCKS commands are supposed to cause
the card to send data back to the host. However sd.c was missing the
state change to sd_sendingdata_state for these commands, with the effect
that the Linux driver would either hang indefinitely waiting for
nonexistent data (pl181) or read zeroes and provoke a qemu warning
message (omap).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/sd.c