qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 00/11] QOM'ify SDBus, housekeeping
@ 2017-12-13 20:44 Philippe Mathieu-Daudé
  2017-12-13 20:44 ` [Qemu-devel] [RFC PATCH 01/11] util/cutils: add qemu_hexbuf_strdup(), yet another hexdump() Philippe Mathieu-Daudé
                   ` (10 more replies)
  0 siblings, 11 replies; 17+ messages in thread
From: Philippe Mathieu-Daudé @ 2017-12-13 20:44 UTC (permalink / raw)
  To: Alistair Francis, Edgar E . Iglesias, Prasad J Pandit,
	Peter Maydell, Andrew Baumann, Andrey Smirnov, Andrey Yurovsky,
	Clement Deschamps, Marc-André Lureau, Igor Mammedov,
	Eduardo Habkost
  Cc: Philippe Mathieu-Daudé, qemu-devel, qemu-arm,
	Peter Crosthwaite, Sai Pavan Boddu

Hi,

This series also refactor the SDBus codebase to ease further development/series.

- 1: we add another hexbuf_strdup() helper, hoping someone will come with a
     clever way to do the same :)
- 2,4,5: add a sdbus_create_bus(master) and sdbus_create_slave(bus) to use
     instead of the current qbus_create_inplace(),
- 3: we add some trace events which will result useful later,
- 6-10: we use the TYPE_INTERFACE to enforce a stricter QOM, this also allow us
     to remove duplicate types,
- 11: we let the Xilinx Zynq machine set the "sd-bus-name" property, so now a
     slave SDCard can be now hot-plugged in the second bus.

In a later series we will update the PL181 and BCM2835 devices, having them
implement the TYPE_SD_BUS_MASTER_INTERFACE.

Regards,

Phil.

Based-on: 20171213195852.30439-15-f4bug@amsat.org
          (SDHCI housekeeping)

Philippe Mathieu-Daudé (11):
  util/cutils: add qemu_hexbuf_strdup(), yet another hexdump()
  bcm2835_peripherals: move GPIO 'sdbus' property link from init() ->
    realize()
  sdbus: add trace events
  sdbus: add sdbus_create_bus() to replace qbus_create_inplace()
  sdbus: add sdbus_create_slave()
  sdbus: rename SDCardClass -> SDSlaveClass
  sdbus: add a SD_BUS_SLAVE interface
  sdbus: add a SD_BUS_MASTER interface
  sdhci: implement the SD_BUS_MASTER interface
  hw/sd/pxa2xx: implement the SD_BUS_MASTER interface
  hw/arm/xilinx_zynq: use sdbus_create_slave() to name the different SD
    busses

 include/hw/sd/sd.h           |  3 ++
 include/hw/sd/sdhci.h        |  3 +-
 include/qemu/cutils.h        |  3 ++
 hw/sd/sd-internal.h          | 14 ++++++---
 hw/arm/bcm2835_peripherals.c |  9 +++---
 hw/arm/xilinx_zynq.c         |  9 ++++--
 hw/sd/core.c                 | 74 +++++++++++++++++++++++++++++++++++++-------
 hw/sd/pxa2xx_mmci.c          | 36 +++++++--------------
 hw/sd/sd.c                   |  8 +++--
 hw/sd/sdhci.c                | 66 +++++++++++++++++----------------------
 util/hexdump.c               | 19 ++++++++++++
 hw/sd/trace-events           |  6 ++++
 12 files changed, 162 insertions(+), 88 deletions(-)

-- 
2.15.1

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2017-12-20 17:31 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-13 20:44 [Qemu-devel] [PATCH 00/11] QOM'ify SDBus, housekeeping Philippe Mathieu-Daudé
2017-12-13 20:44 ` [Qemu-devel] [RFC PATCH 01/11] util/cutils: add qemu_hexbuf_strdup(), yet another hexdump() Philippe Mathieu-Daudé
2017-12-13 20:44 ` [Qemu-devel] [PATCH 02/11] bcm2835_peripherals: move GPIO 'sdbus' property link from init() -> realize() Philippe Mathieu-Daudé
2017-12-15  0:58   ` Alistair Francis
2017-12-13 20:44 ` [Qemu-devel] [PATCH 03/11] sdbus: add trace events Philippe Mathieu-Daudé
2017-12-13 20:44 ` [Qemu-devel] [PATCH 04/11] sdbus: add sdbus_create_bus() to replace qbus_create_inplace() Philippe Mathieu-Daudé
2017-12-15  1:02   ` Alistair Francis
2017-12-13 20:44 ` [Qemu-devel] [PATCH 05/11] sdbus: add sdbus_create_slave() Philippe Mathieu-Daudé
2017-12-15  1:03   ` Alistair Francis
2017-12-13 20:44 ` [Qemu-devel] [PATCH 06/11] sdbus: rename SDCardClass -> SDSlaveClass Philippe Mathieu-Daudé
2017-12-15  1:04   ` Alistair Francis
2017-12-13 20:44 ` [Qemu-devel] [PATCH 07/11] sdbus: add a SD_BUS_SLAVE interface Philippe Mathieu-Daudé
2017-12-20 17:31   ` Philippe Mathieu-Daudé
2017-12-13 20:44 ` [Qemu-devel] [PATCH 08/11] sdbus: add a SD_BUS_MASTER interface Philippe Mathieu-Daudé
2017-12-13 20:44 ` [Qemu-devel] [PATCH 09/11] sdhci: implement the " Philippe Mathieu-Daudé
2017-12-13 20:44 ` [Qemu-devel] [PATCH 10/11] hw/sd/pxa2xx: " Philippe Mathieu-Daudé
2017-12-13 20:44 ` [Qemu-devel] [PATCH 11/11] hw/arm/xilinx_zynq: use sdbus_create_slave() to name the different SD busses Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).