qemu/hw/i2c
Markus Armbruster 1b111dc121 hw: cannot_instantiate_with_device_add_yet due to pointer props
Pointer properties can be set only by code, not by device_add.  A
device with a pointer property can work with device_add only when the
property may remain null.

This is the case for property "interrupt_vector" of device
"etraxfs,pic".  Add a comment there.

Set cannot_instantiate_with_device_add_yet for the other devices with
pointer properties, with a comment explaining why.

Juha Riihimäki and Peter Maydell deserve my thanks for making "pointer
property must not remain null" blatantly obvious in the OMAP devices.

Only device "smbus-eeprom" is actually changed.  The others are all
sysbus devices, which get cannot_instantiate_with_device_add_yet set
in their abstract base's class init function.  Setting it again in
their class init function is technically redundant, but serves as
insurance for when sysbus devices become available with device_add,
and as documentation.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> (for ETRAX)
Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-12-24 17:27:17 +01:00
..
bitbang_i2c.c bitbang_i2c: QOM cast cleanup 2013-07-29 21:06:57 +02:00
bitbang_i2c.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
core.c devices: Associate devices to their logical category 2013-07-29 10:37:09 -05:00
exynos4210_i2c.c exynos4210_i2c: QOM cast cleanup 2013-07-29 21:07:02 +02:00
Makefile.objs hw: move I2C controllers to hw/i2c/, configure via default-configs/ 2013-04-08 18:13:13 +02:00
omap_i2c.c hw: cannot_instantiate_with_device_add_yet due to pointer props 2013-12-24 17:27:17 +01:00
pm_smbus.c Extend support of SMBUS(module pm_smbus.c) HST_STS register. 2013-07-09 13:38:55 -05:00
smbus_eeprom.c hw: cannot_instantiate_with_device_add_yet due to pointer props 2013-12-24 17:27:17 +01:00
smbus_ich9.c ich9: Document why cannot_instantiate_with_device_add_yet 2013-12-23 00:27:23 +01:00
smbus.c
versatile_i2c.c versatile_i2c: QOM cast cleanup 2013-07-29 21:06:57 +02:00