]> Git Repo - qemu.git/commitdiff
sdcard: warn if host uses an incorrect address for APP CMD (CMD55)
authorPhilippe Mathieu-Daudé <[email protected]>
Thu, 22 Feb 2018 15:12:54 +0000 (15:12 +0000)
committerPeter Maydell <[email protected]>
Thu, 22 Feb 2018 15:12:54 +0000 (15:12 +0000)
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Message-id: 20180215221325[email protected]
Signed-off-by: Peter Maydell <[email protected]>
hw/sd/sd.c

index d6dd2b9a15df79ab8f0b5b0c0f9b976ae6922d99..c8351d4f0be9c000cb74b9d9085cdae9232852b1 100644 (file)
@@ -1391,6 +1391,11 @@ static sd_rsp_type_t sd_normal_command(SDState *sd,
         case sd_identification_state:
         case sd_inactive_state:
             return sd_illegal;
+        case sd_idle_state:
+            if (rca) {
+                qemu_log_mask(LOG_GUEST_ERROR,
+                              "SD: illegal RCA 0x%04x for APP_CMD\n", req.cmd);
+            }
         default:
             break;
         }
This page took 0.028747 seconds and 4 git commands to generate.