sdhci: don't raise a command index error for an unexpected response
authorAndrew Baumann <Andrew.Baumann@microsoft.com>
Mon, 21 Dec 2015 22:47:48 +0000 (14:47 -0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 22 Dec 2015 08:34:26 +0000 (16:34 +0800)
commit62d32ec817f985ce1c38868d279d449c80975ff2
tree03f75fef114e65941173758f772134888a4822ea
parent6890a695d954f33c8a9c4efd3037fdb707fe28ec
sdhci: don't raise a command index error for an unexpected response

This deletes a block of code that raised a command index error if a
command returned response data, but the guest did not set the
appropriate bits in the response register to handle such a response. I
cannot find any documentation that suggests the controller should
behave in this way, the error code doesn't make sense (command index
error is defined for the case where the index in a response does not
match that of the issued command), and in at least one case (CMD23
issued by UEFI on Raspberry Pi 2), actual hardware does not do this.

Signed-off-by: Andrew Baumann <Andrew.Baumann@microsoft.com>
Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Message-id: 1450738069-18664-3-git-send-email-Andrew.Baumann@microsoft.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/sd/sdhci.c