From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:43033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcNUt-0005QR-U4 for qemu-devel@nongnu.org; Sun, 18 Dec 2011 15:38:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RcNUr-0006zj-Rh for qemu-devel@nongnu.org; Sun, 18 Dec 2011 15:38:15 -0500 Received: from mnementh.archaic.org.uk ([81.2.115.146]:38904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcNUr-0006yK-JY for qemu-devel@nongnu.org; Sun, 18 Dec 2011 15:38:13 -0500 From: Peter Maydell Date: Sun, 18 Dec 2011 20:37:50 +0000 Message-Id: <1324240680-26905-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 00/10] hw/sd.c: Fix various status related bugs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: patches@linaro.org This patchset fixes a number of bugs in our SD card emulation, mostly in the status bit handling. In particular, it fixes the issues raised in https://bugs.launchpad.net/qemu/+bug/597641 . The others are things I noticed while I was poking around in the code. Patches 01-04, 07 are pretty straightforward. 05, 06 are refactoring for the benefit of later patches. 08 and 09 are more interesting. 10 makes sense to me although the spec is rather vague on the point. Peter Maydell (10): hw/sd.c: Fix the set of commands which are failed when card is locked hw/sd.c: Add comment regarding CARD_STATUS_* defines hw/sd.c: On CRC error, set CRC error status bit rather than clearing it hw/sd.c: When setting ADDRESS_ERROR bit, don't clear everything else hw/sd.c: Handle illegal commands in sd_do_command hw/sd.c: Handle CRC and locked-card errors in normal code path hw/sd.c: Set ILLEGAL_COMMAND for ACMDs in invalid state hw/sd.c: Correct handling of type B SD status bits hw/sd.c: Correct handling of APP_CMD status bit hw/sd.c: Clear status bits when read via response r6 hw/sd.c | 131 ++++++++++++++++++++++++++++++++++++++++---------------------- 1 files changed, 84 insertions(+), 47 deletions(-) -- 1.7.5.4