qemu-e2k/hw/sd
Philippe Mathieu-Daudé f6fb1f9b31 sdcard: Correct CRC16 offset in sd_function_switch()
Per the Physical Layer Simplified Spec. "4.3.10.4 Switch Function Status":

  The block length is predefined to 512 bits

and "4.10.2 SD Status":

  The SD Status contains status bits that are related to the SD Memory Card
  proprietary features and may be used for future application-specific usage.
  The size of the SD Status is one data block of 512 bit. The content of this
  register is transmitted to the Host over the DAT bus along with a 16-bit CRC.

Thus the 16-bit CRC goes at offset 64.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20180509060104.4458-3-f4bug@amsat.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2018-05-15 14:58:44 +01:00
..
bcm2835_sdhost.c hw/sd/bcm2835_sdhost: Don't raise spurious interrupts 2018-04-10 13:02:25 +01:00
core.c hw: Do not include "sysemu/block-backend.h" if it is not necessary 2018-03-12 16:12:46 +01:00
Makefile.objs sdcard: Display command name when tracing CMD/ACMD 2018-03-09 17:09:44 +00:00
milkymist-memcard.c hw/sd/milkymist-memcard: expose a SDBus and connect the SDCard to it 2018-02-22 15:12:52 +00:00
omap_mmc.c hw/sd/omap_mmc: Reset SD card on controller reset 2018-01-16 13:28:13 +00:00
pl181.c hw/sd/pl181: Reset SD card on controller reset 2018-01-16 13:28:11 +00:00
pxa2xx_mmci.c hw/sd/pxa2xx_mmci: add read/write() trace events 2018-01-11 13:25:39 +00:00
sd.c sdcard: Correct CRC16 offset in sd_function_switch() 2018-05-15 14:58:44 +01:00
sdhci-internal.h sdhci: add Spec v4.2 register definitions 2018-02-13 16:15:09 +01:00
sdhci.c sdhci: fix incorrect use of Error * 2018-03-23 18:26:45 +00:00
sdmmc-internal.c sdcard: Display command name when tracing CMD/ACMD 2018-03-09 17:09:44 +00:00
sdmmc-internal.h sdcard: Display command name when tracing CMD/ACMD 2018-03-09 17:09:44 +00:00
ssi-sd.c hw/sd/ssi-sd: use the SDBus API, connect the SDCard to the bus 2018-02-22 15:12:52 +00:00
trace-events hw/sd/bcm2835_sdhost: Add tracepoints 2018-04-10 13:02:25 +01:00