]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/sd/sdcard: Restrict Class 6 commands to SCSD cards
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 3 Jun 2020 17:59:16 +0000 (19:59 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 3 Sep 2020 00:06:19 +0000 (19:06 -0500)
commit557980ba70dba65bde208b03b902f419921b307a
treeff10b0e9eadd034194139e001c1c583a724ad2c9
parentb6f4d5bf209542ee9521d36bd891ad630e7c80b4
hw/sd/sdcard: Restrict Class 6 commands to SCSD cards

Only SCSD cards support Class 6 (Block Oriented Write Protection)
commands.

  "SD Specifications Part 1 Physical Layer Simplified Spec. v3.01"

  4.3.14 Command Functional Difference in Card Capacity Types

  * Write Protected Group

  SDHC and SDXC do not support write-protected groups. Issuing
  CMD28, CMD29 and CMD30 generates the ILLEGAL_COMMAND error.

Cc: qemu-stable@nongnu.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20200630133912.9428-7-f4bug@amsat.org>
(cherry picked from commit 9157dd597d293ab7f599f4d96c3fe8a6e07c633d)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/sd/sd.c