Skip to content

hw/sd: convert legacy SDHCI devices to the SDBus API

Philippe Mathieu-Daudé qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest10 patches 8 repliesIn review

Changes in v4 from the cover letter

- rebased (was from Feb 2018)
- use named GPIOs
- addressed Peter review comment (adding TYPE_PL181_BUS object)
- convert DPRINF to trace events

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10hw/sd/pl181: Replace fprintf(stderr, "*\n") with error_report()hw/sd/pl181.c+3 -20 replies
2/10hw/sd/pl181: Rename pl181_send_command() as pl181_do_command()hw/sd/pl181.c+2 -21 reply
3/10hw/sd/pl181: Add TODO to use Fifo32 APIhw/sd/pl181.c+1 -10 replies
4/10hw/arm/versatilepb: Comment to remember some IRQs lines are left unwiredhw/arm/versatilepb.c+2 -01 reply
5/10hw/sd/pl181: Use named GPIOshw/arm/integratorcp.c hw/arm/realview.c hw/arm/vexpress.c +1 more+11 -91 reply
6/10hw/sd/pl181: Expose a SDBus and connect the SDCard to ithw/sd/pl181.c+51 -161 reply
7/10hw/sd/pl181: Do not create SD card within the SDHCI controllerhw/arm/integratorcp.c hw/arm/realview.c hw/arm/versatilepb.c +2 more+61 -202 replies
8/10hw/sd/pl181: Replace disabled fprintf()s by trace eventshw/sd/pl181.c hw/sd/trace-events+19 -171 reply
9/10hw/sd/sdcard: make sd_data_ready() statichw/sd/sd.c include/hw/sd/sd.h+1 -20 replies
10/10hw/sd: move sdcard legacy API to 'hw/sd/sdcard_legacy.h'hw/sd/omap_mmc.c hw/sd/sd.c include/hw/sd/sd.h +1 more+52 -170 replies

Reviews trailers per patch

8 of 10 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAlistair FrancisPhilippe Mathieu-DaudéPeter Maydell
SeriesA-b
1/10R-b
2/10R-b
3/10
4/10
5/10R-b
6/10R-b
7/10R-b R-b
8/10R-b
9/10R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 00/10] hw/sd: convert legacy SDHCI devices to the SDBus API

Hi,

Since v3:
- rebased (was from Feb 2018)
- use named GPIOs
- addressed Peter review comment (adding TYPE_PL181_BUS object)
- convert DPRINF to trace events

Since v2:
- pl181: remove legacy sd_set_cb() (Peter)

Since v1:
- rebased on /master (Peter sdcard reset() patches)
- fix milkymist-mmc from previous seris using instance_init (Michael Walle)

This series convert 3 devices using the legacy SDCard API to the SDBus API:
- milkymist-mmc
- pl181
- ssi-sd

Then move the legacy API to a separate header "sdcard_legacy.h".

Now the OMAP MMC is the last device using the legacy API, but need to get QOM'ified first.

Regards,

Phil.

v3: https://www.mail-archive.com/[email protected]/msg514645.html

Alistair Francis (1):
hw/sd/pl181: Replace fprintf(stderr, "*\n") with error_report()

Philippe Mathieu-Daudé (9):
hw/sd/pl181: Rename pl181_send_command() as pl181_do_command() hw/sd/pl181: Add TODO to use Fifo32 API hw/arm/versatilepb: Comment to remember some IRQs lines are left
unwired
hw/sd/pl181: Use named GPIOs
hw/sd/pl181: Expose a SDBus and connect the SDCard to it hw/sd/pl181: Do not create SD card within the SDHCI controller hw/sd/pl181: Replace disabled fprintf()s by trace events hw/sd/sdcard: make sd_data_ready() static
hw/sd: move sdcard legacy API to 'hw/sd/sdcard_legacy.h'

 include/hw/sd/sd.h            |  17 ------
 include/hw/sd/sdcard_legacy.h |  50 +++++++++++++++
 hw/arm/integratorcp.c         |  17 +++++-
 hw/arm/realview.c             |  16 ++++-
 hw/arm/versatilepb.c          |  28 ++++++++-
 hw/arm/vexpress.c             |  15 ++++-
 hw/sd/omap_mmc.c              |   2 +-
 hw/sd/pl181.c                 | 111 +++++++++++++++++++---------------
 hw/sd/sd.c                    |   3 +-
 hw/sd/trace-events            |  10 +++
 10 files changed, 193 insertions(+), 76 deletions(-)
 create mode 100644 include/hw/sd/sdcard_legacy.h
Signature · 1 line
2.21.3