mbox series

[00/12] hw/sd/sdcard: Convert ACMD to sd_cmd_handler format

Message ID 20240627164815.82606-1-philmd@linaro.org (mailing list archive)
Headers show
Series hw/sd/sdcard: Convert ACMD to sd_cmd_handler format | expand

Message

Philippe Mathieu-Daudé June 27, 2024, 4:48 p.m. UTC
For each switch case in the big sd_app_command() function,
extract the corresponding sd_cmd_handler.
Few housekeeping patches at the end.

Based-on: <20240627164345.82192-1-philmd@linaro.org>

Full series for testing:
https://gitlab.com/philmd/qemu/-/tags/emmc-v4

Philippe Mathieu-Daudé (12):
  hw/sd/sdcard: Add sd_acmd_SET_BUS_WIDTH handler (ACMD6)
  hw/sd/sdcard: Add sd_acmd_SD_STATUS handler (ACMD13)
  hw/sd/sdcard: Add sd_acmd_SEND_NUM_WR_BLOCKS handler (ACMD22)
  hw/sd/sdcard: Add sd_acmd_SET_WR_BLK_ERASE_COUNT handler (ACMD23)
  hw/sd/sdcard: Add sd_acmd_SD_APP_OP_COND handler (ACMD41)
  hw/sd/sdcard: Add sd_acmd_SET_CLR_CARD_DETECT handler (ACMD42)
  hw/sd/sdcard: Add sd_acmd_SEND_SCR handler (ACMD51)
  hw/sd/sdcard: Remove sd_none enum from sd_cmd_type_t
  hw/sd/sdcard: Remove noise from sd_acmd_name()
  hw/sd/sdcard: Remove noise from sd_cmd_name()
  hw/sd/sdcard: Remove default case in read/write on DAT lines
  hw/sd/sdcard: Trace length of data read on DAT lines

 include/hw/sd/sd.h |   1 -
 hw/sd/sd.c         | 256 +++++++++++++++++++++------------------------
 hw/sd/trace-events |   2 +-
 3 files changed, 119 insertions(+), 140 deletions(-)