Skip to content

hw/sd/sdhci: Set reset value of interrupt registers

Philippe Mathieu-Daudé qemu-arm qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest14 patches 15 repliesIn review
  2. v414 patches 18 repliesSuperseded
  3. v312 patches 0 repliesSuperseded

Changes in v5 from the cover letter

- Convert quirks (Zoltan)
- Cache class to avoid invalid cast with PCI
- Remove 'endianness' property (Bernhard)

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14hw/qdev-properties-system: Include missing 'qapi/qapi-types-common.h'include/hw/qdev-properties-system.h+1 -01 reply
2/14hw/sd/sdhci: Remove need for SDHCIState::vendor fieldhw/arm/fsl-imx25.c hw/arm/fsl-imx6.c hw/arm/fsl-imx6ul.c +5 more+4 -250 replies
3/14hw/sd/sdhci: Redefine SDHCI_QUIRK_NO_BUSY_IRQ bitmask as bithw/sd/sdhci.c include/hw/sd/sdhci.h+6 -61 reply
4/14hw/sd/sdhci: Include 'wp-inverted' property in quirk bitmaskhw/arm/aspeed.c hw/sd/sdhci.c include/hw/sd/sdhci.h+14 -101 reply
5/14hw/sd/sdhci: Include 'pending-insert-quirk' property in quirk bitmaskhw/sd/sdhci.c include/hw/sd/sdhci.h+8 -51 reply
6/14hw/sd/sdhci: Introduce SDHCIClass stubhw/sd/sdhci-pci.c hw/sd/sdhci.c include/hw/sd/sdhci.h+17 -40 replies
7/14hw/sd/sdhci: Make quirks a class propertyhw/sd/sdhci.c include/hw/sd/sdhci.h+13 -10 replies
8/14hw/sd/sdhci: Make I/O region size a class propertyhw/sd/sdhci.c include/hw/sd/sdhci.h+9 -20 replies
9/14hw/sd/sdhci: Allow SDHCI classes to register their own MemoryRegionOpshw/sd/sdhci.c include/hw/sd/sdhci.h+9 -141 reply
10/14hw/sd/sdhci: Allow SDHCI classes to register their own read-only regshw/sd/sdhci.c include/hw/sd/sdhci.h+16 -10 replies
11/14hw/sd/sdhci: Allow SDHCI classes to have different register reset valueshw/sd/sdhci-internal.h hw/sd/sdhci.c include/hw/sd/sdhci.h+46 -120 replies
12/14hw/sd/sdhci: Implement Freescale eSDHC as TYPE_FSL_ESDHChw/sd/sdhci.c include/hw/sd/sdhci.h+45 -10 replies
13/14hw/ppc/e500: Replace generic SDHCI by Freescale eSDHChw/ppc/e500.c+1 -110 replies
14/14hw/sd/sdhci: Remove unnecessary 'endianness' propertyhw/sd/sdhci-internal.h hw/sd/sdhci.c include/hw/sd/sdhci.h+3 -3310 replies

Reviews trailers per patch

5 of 14 patches have a Reviewed-by or Acked-by.

PatchBALATON ZoltanBernhard Beschow
1/14
2/14R-b R-b
3/14
4/14
5/14
6/14
7/14
8/14R-b
9/14R-b
10/14
11/14R-b
12/14
13/14R-b
14/14

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

Read the v5 thread

Cover letter [PATCH v5 00/14] hw/sd/sdhci: Set reset value of interrupt registers

Since v4:
- Convert quirks (Zoltan)
- Cache class to avoid invalid cast with PCI
- Remove 'endianness' property (Bernhard)

Since v3:
- Fix "hw/qdev-properties-system.h" (first patch)
- Convert to EndianMode (patch #10)

Rainy saturday, time for some hobbyist contributions :)

In this series we try to address the issue Zoltan reported and try to fix in [*], but using a more generic approach. The SDHCI code ends up better consolidated and ready to scale for more vendor implementations.

[*] https://lore.kernel.org/qemu-devel/[email protected]/

Philippe Mathieu-Daudé (14):
hw/qdev-properties-system: Include missing 'qapi/qapi-types-common.h' hw/sd/sdhci: Remove need for SDHCIState::vendor field hw/sd/sdhci: Redefine SDHCI_QUIRK_NO_BUSY_IRQ bitmask as bit hw/sd/sdhci: Include 'wp-inverted' property in quirk bitmask hw/sd/sdhci: Include 'pending-insert-quirk' property in quirk bitmask hw/sd/sdhci: Introduce SDHCIClass stub
hw/sd/sdhci: Make quirks a class property
hw/sd/sdhci: Make I/O region size a class property hw/sd/sdhci: Allow SDHCI classes to register their own MemoryRegionOps hw/sd/sdhci: Allow SDHCI classes to register their own read-only regs hw/sd/sdhci: Allow SDHCI classes to have different register reset
values
hw/sd/sdhci: Implement Freescale eSDHC as TYPE_FSL_ESDHC hw/ppc/e500: Replace generic SDHCI by Freescale eSDHC hw/sd/sdhci: Remove unnecessary 'endianness' property

 hw/sd/sdhci-internal.h              |  26 ++---
 include/hw/qdev-properties-system.h |   1 +
 include/hw/sd/sdhci.h               |  83 ++++++++++----
 hw/arm/aspeed.c                     |   2 +-
 hw/arm/fsl-imx25.c                  |   2 -
 hw/arm/fsl-imx6.c                   |   2 -
 hw/arm/fsl-imx6ul.c                 |   2 -
 hw/arm/fsl-imx7.c                   |   2 -
 hw/arm/fsl-imx8mp.c                 |   2 -
 hw/ppc/e500.c                       |  12 +-
 hw/sd/sdhci-pci.c                   |   1 +
 hw/sd/sdhci.c                       | 166 ++++++++++++++++++----------
 12 files changed, 184 insertions(+), 117 deletions(-)
Signature · 1 line
2.47.1