Skip to content

hw/sd/sdcard: Consolidate SDProto::cmd[] arrays

Philippe Mathieu-Daudé qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11hw/sd/sdcard: Move sd_[a]cmd_name() methods to sd.chw/sd/meson.build hw/sd/sd.c hw/sd/sdmmc-internal.c +1 more+63 -990 replies
2/11hw/sd/sdcard: Pass SDState as argument to sd_[a]cmd_name()hw/sd/sd.c+4 -40 replies
3/11hw/sd/sdcard: Prepare SDProto to contain more fieldshw/sd/sd.c+15 -140 replies
4/11hw/sd/sdcard: Store command name in SDProtohw/sd/sd.c+22 -130 replies
5/11hw/sd/sdcard: Store command type in SDProtohw/sd/sd.c include/hw/sd/sd.h+23 -260 replies
6/11hw/sd/sdcard: Store command class in SDProtohw/sd/sd.c+19 -170 replies
7/11hw/sd/sdcard: Remove SEND_DSR dead case (CMD4)hw/sd/sd.c+2 -120 replies
8/11hw/sd/sdcard: Register generic optional handlers (CMD11 and CMD20)hw/sd/sd.c+12 -20 replies
9/11hw/sd/sdcard: Register optional handlers from spec v6.00hw/sd/sd.c+10 -50 replies
10/11hw/sd/sdcard: Register SDIO optional handlershw/sd/sd.c+6 -20 replies
11/11hw/sd/sdcard: Register Security Extension optional handlershw/sd/sd.c+13 -40 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/11] hw/sd/sdcard: Consolidate SDProto::cmd[] arrays

Use the SDProto structure to handle command properties such name, type, class and handler.
Add stubs for optional commands to ease tracing.

Based-on: <[email protected]>

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

Philippe Mathieu-Daudé (11):
hw/sd/sdcard: Move sd_[a]cmd_name() methods to sd.c hw/sd/sdcard: Pass SDState as argument to sd_[a]cmd_name() hw/sd/sdcard: Prepare SDProto to contain more fields hw/sd/sdcard: Store command name in SDProto hw/sd/sdcard: Store command type in SDProto hw/sd/sdcard: Store command class in SDProto hw/sd/sdcard: Remove SEND_DSR dead case (CMD4) hw/sd/sdcard: Register generic optional handlers (CMD11 and CMD20) hw/sd/sdcard: Register optional handlers from spec v6.00 hw/sd/sdcard: Register SDIO optional handlers hw/sd/sdcard: Register Security Extension optional handlers

 hw/sd/sdmmc-internal.h |  26 ------
 include/hw/sd/sd.h     |   5 +-
 hw/sd/sd.c             | 192 ++++++++++++++++++++++++++++++-----------
 hw/sd/sdmmc-internal.c |  72 ----------------
 hw/sd/meson.build      |   2 +-
 5 files changed, 144 insertions(+), 153 deletions(-)
 delete mode 100644 hw/sd/sdmmc-internal.c
Signature · 1 line
2.41.0