Skip to content

hw/sd: Convert SD/MMC devices to Resettable interface

Oscar Alejandro Sánchez Lucero qemu-arm qemu-devel 2 versions In review

Get series with b4
b4 am [email protected] change-id 20261130-sd-resettable-d2911a1f5039

Versions newest first

  1. v2 Latest8 patches 1 replyIn review
  2. v18 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- Use direct (SDHCIState *)obj cast in sdhci_poweron_reset_hold() so
sdhci-pci does not fail QOM type checking (Bin Meng).
- Pick up Reviewed-by tags from Bin Meng on patches 1-6 and 8.
- Link to v1: https://lore.kernel.org/qemu-devel/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8hw/sd/allwinner-sdhost: Convert to Resettable interfacehw/sd/allwinner-sdhost.c+4 -30 replies
2/8hw/sd/bcm2835_sdhost: Convert to Resettable interfacehw/sd/bcm2835_sdhost.c+4 -30 replies
3/8hw/sd/cadence_sdhci: Convert to Resettable interfacehw/sd/cadence_sdhci.c+9 -50 replies
4/8hw/sd/npcm7xx_sdhci: Convert to Resettable interfacehw/sd/npcm7xx_sdhci.c+4 -30 replies
5/8hw/sd/pl181: Convert to Resettable interfacehw/sd/pl181.c+4 -30 replies
6/8hw/sd/sd: Convert to Resettable interfacehw/sd/sd.c+9 -50 replies
7/8hw/sd/sdhci: Convert to Resettable interfacehw/sd/sdhci.c+4 -31 reply
8/8hw/sd/ssi-sd: Convert to Resettable interfacehw/sd/ssi-sd.c+4 -30 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchBin Meng
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/8] hw/sd: Convert SD/MMC devices to Resettable interface

Convert all remaining SD/MMC host controllers and card devices in hw/sd/ from the deprecated device_class_set_legacy_reset() interface to the Resettable interface (hold phase).

Where internal paths (MMIO soft-reset, card insertion, or CMD0) trigger a device reset, extract a helper routine so the Resettable phase method is not called directly, per docs/devel/reset.rst

---
Changes in v2:
- Use direct (SDHCIState *)obj cast in sdhci_poweron_reset_hold() so
sdhci-pci does not fail QOM type checking (Bin Meng).
- Pick up Reviewed-by tags from Bin Meng on patches 1-6 and 8.
- Link to v1: https://lore.kernel.org/qemu-devel/[email protected]

---
Oscar Alejandro Sánchez Lucero (8):
hw/sd/allwinner-sdhost: Convert to Resettable interface hw/sd/bcm2835_sdhost: Convert to Resettable interface hw/sd/cadence_sdhci: Convert to Resettable interface hw/sd/npcm7xx_sdhci: Convert to Resettable interface hw/sd/pl181: Convert to Resettable interface hw/sd/sd: Convert to Resettable interface hw/sd/sdhci: Convert to Resettable interface hw/sd/ssi-sd: Convert to Resettable interface

 hw/sd/allwinner-sdhost.c |  7 ++++---
 hw/sd/bcm2835_sdhost.c   |  7 ++++---
 hw/sd/cadence_sdhci.c    | 14 +++++++++-----
 hw/sd/npcm7xx_sdhci.c    |  7 ++++---
 hw/sd/pl181.c            |  7 ++++---
 hw/sd/sd.c               | 14 +++++++++-----
 hw/sd/sdhci.c            |  7 ++++---
 hw/sd/ssi-sd.c           |  7 ++++---
 8 files changed, 42 insertions(+), 28 deletions(-)

---
base-commit: 9751c62358073580cbf330a4df22077a7c6a407c
change-id: 20261130-sd-resettable-d2911a1f5039

Best regards,

Signature · 1 line
Oscar Alejandro Sánchez Lucero <[email protected]>