]> git.ipfire.org Git - thirdparty/qemu.git/commit
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)
committerJustin M. Forbes <jforbes@redhat.com>
Fri, 25 Feb 2011 16:17:48 +0000 (10:17 -0600)
commitcdd8152e56422d37e0d38454552bac5bc8ce4838
tree3cc31bf58b16c829bd54706b65a5c3b7b52f175e
parent74b121a007c52b435870def4b1f1e6c42042bf51
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