That's why I regret not letting QEMU taking care of the naming with :
s->bus = i2c_init_bus(dev, NULL);
This would break the user interface though. This is still an option.
Since the devices providing these i2c buses have no qdev ID, these buses
would then be named i2c.N, where N counts up from 0. I think. See "Bus
names are defined as follows" below.
Good enough?
Good enough to avoid the bus naming conflict, not good enough
to easily identify a bus in the machine topology and it's also
breaking the user interface ... too many cons to be a good
choice.
How is it breaking the user interface?
Sorry I might have misunderstood your comment.
Mind, I didn't mean to propose changing existing bus names, i.e. the bus
names "aspeed.i2c.bus.N" of the i2c bus objects at
/machine/soc/i2c/bus[N]/aspeed.i2c_init_bus.N. Only the bus names of
the new i2c bus objects at
/machine/soc/ioexp[M]/ioexp-i2c[0]/bus[N]/NEW-BUS-OBJECT.
Yeah that's fine. This is would be a good addition if possible.
Thanks,
C.