On 3 December 2012 13:37, Gerd Hoffmann <kra...@redhat.com> wrote: >> But why both EHCI controller are named "usb-bus.0"? How to distinguish the >> different usb usb? > > That is the default name. For usb controllers added via -device the bus > name is derived from the device name, i.e. '-device usb-ehci,id=ehci" > gives you a bus named "ehci.0". > > For builtin devices that doesn't work though as you don't have to add > them manually. Guess they should be explicitly named then by zynq_init().
It would probably be nice if the qdev/qom layer explicitly failed attempts to create a bus with a name matching one we already have; then this kind of thing would be noticed earlier... -- PMM