Re: [PATCH 01/11] hw/sd/omap_mmc: Do a minimal conversion to QDev

2025-01-30 Thread Philippe Mathieu-Daudé
On 28/1/25 11:45, Peter Maydell wrote: Do a minimal conversion of the omap_mmc device model to QDev. In this commit we do the bare minimum to produce a working device: * add the SysBusDevice parent_obj and the usual type boilerplate * omap_mmc_init() now returns a DeviceState* * reset is h

Re: [PATCH 01/11] hw/sd/omap_mmc: Do a minimal conversion to QDev

2025-01-28 Thread Peter Maydell
On Tue, 28 Jan 2025 at 18:51, Richard Henderson wrote: > > On 1/28/25 02:45, Peter Maydell wrote: > > +static const TypeInfo omap_mmc_info = { > > +.name = TYPE_OMAP_MMC, > > +.parent = TYPE_SYS_BUS_DEVICE, > > +.instance_size = sizeof(OMAPMMCState), > > +.instance_init = omap_mmc_

Re: [PATCH 01/11] hw/sd/omap_mmc: Do a minimal conversion to QDev

2025-01-28 Thread Richard Henderson
On 1/28/25 02:45, Peter Maydell wrote: +static const TypeInfo omap_mmc_info = { +.name = TYPE_OMAP_MMC, +.parent = TYPE_SYS_BUS_DEVICE, +.instance_size = sizeof(OMAPMMCState), +.instance_init = omap_mmc_initfn, +.class_init = omap_mmc_class_init, +}; + +static void omap_mmc_re

[PATCH 01/11] hw/sd/omap_mmc: Do a minimal conversion to QDev

2025-01-28 Thread Peter Maydell
Do a minimal conversion of the omap_mmc device model to QDev. In this commit we do the bare minimum to produce a working device: * add the SysBusDevice parent_obj and the usual type boilerplate * omap_mmc_init() now returns a DeviceState* * reset is handled by sysbus reset, so the SoC reset fun