Skip to content

hw/sd/sdcard: Convert ACMD to sd_cmd_handler format

Philippe Mathieu-Daudé qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12hw/sd/sdcard: Add sd_acmd_SET_BUS_WIDTH handler (ACMD6)hw/sd/sd.c+15 -130 replies
2/12hw/sd/sdcard: Add sd_acmd_SD_STATUS handler (ACMD13)hw/sd/sd.c+9 -130 replies
3/12hw/sd/sdcard: Add sd_acmd_SEND_NUM_WR_BLOCKS handler (ACMD22)hw/sd/sd.c+10 -130 replies
4/12hw/sd/sdcard: Add sd_acmd_SET_WR_BLK_ERASE_COUNT handler (ACMD23)hw/sd/sd.c+11 -110 replies
5/12hw/sd/sdcard: Add sd_acmd_SD_APP_OP_COND handler (ACMD41)hw/sd/sd.c+45 -370 replies
6/12hw/sd/sdcard: Add sd_acmd_SET_CLR_CARD_DETECT handler (ACMD42)hw/sd/sd.c+13 -120 replies
7/12hw/sd/sdcard: Add sd_acmd_SEND_SCR handler (ACMD51)hw/sd/sd.c+8 -110 replies
8/12hw/sd/sdcard: Remove sd_none enum from sd_cmd_type_thw/sd/sd.c include/hw/sd/sd.h+1 -70 replies
9/12hw/sd/sdcard: Remove noise from sd_acmd_name()hw/sd/sd.c+1 -110 replies
10/12hw/sd/sdcard: Remove noise from sd_cmd_name()hw/sd/sd.c+0 -50 replies
11/12hw/sd/sdcard: Remove default case in read/write on DAT lineshw/sd/sd.c+4 -50 replies
12/12hw/sd/sdcard: Trace length of data read on DAT lineshw/sd/sd.c hw/sd/trace-events+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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: <[email protected]>

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(-)
Signature · 1 line
2.41.0