hw/sd/sdcard: Add sd_cmd_GEN_CMD handler (CMD56)
commite7364ae74c51666e83f43975decb61b7f66cd409
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 20 Jun 2024 09:57:54 +0000 (20 11:57 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 5 Jul 2024 21:53:57 +0000 (5 23:53 +0200)
treed2549abe7a1ca93ebf205e8235d79ea52074c9da
parenta7487722dc1c6bd278feb0a1ec58e9455cb3daa2
hw/sd/sdcard: Add sd_cmd_GEN_CMD handler (CMD56)

"General command" (GEN_CMD, CMD56) is described as:

  GEN_CMD is the same as the single block read or write
  commands (CMD24 or CMD17). The difference is that [...]
  the data block is not a memory payload data but has a
  vendor specific format and meaning.

Thus this block must not be stored overwriting data block
on underlying storage drive. Handle as RAZ/WI.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Tested-by: Cédric Le Goater <clg@redhat.com>
Message-Id: <20240703134356.85972-3-philmd@linaro.org>
hw/sd/sd.c