usb: rewrite fw path, fix numbering
commit70d31cb22cb67745741b2bb349c9c7c3a184f88b
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 12 Jan 2011 09:58:27 +0000 (12 10:58 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 12 Jan 2011 10:37:26 +0000 (12 11:37 +0100)
treed684a5f0364ef5be66d23a1ed5cf41f6db1badee
parent5f69076b8dda325dcbbc87bdb00e04ffac0f6137
usb: rewrite fw path, fix numbering

This patch rewrites the firmware path code to use the physical port
location tracking just added to the qemu usb core.  It also fixes the
port numbering to start with "1" in the firmware path.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-bus.c