summaryrefslogtreecommitdiff
path: root/hw/usb-musb.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-12-10 11:37:45 +0100
committerGerd Hoffmann <kraxel@redhat.com>2011-01-11 17:24:42 +0100
commitc7a2196a4fcdaba977b99aca0b6a6de5e5e7f64a (patch)
tree5067804286a0d78287d28f1443e05058387d3538 /hw/usb-musb.c
parentfa7935c1e1f84b600fcb1983485352b8d99e01d3 (diff)
usb: keep track of physical port address.
Add a path string to USBPort. Add usb_port_location() function to set the physical location of the usb port. Update all drivers implementing usb ports to call it. Update the monitor commands to print it. Wind it up in qdev. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb-musb.c')
-rw-r--r--hw/usb-musb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb-musb.c b/hw/usb-musb.c
index 87eb9ca0ce..4b5f35b4b1 100644
--- a/hw/usb-musb.c
+++ b/hw/usb-musb.c
@@ -351,6 +351,7 @@ struct MUSBState {
usb_bus_new(&s->bus, NULL /* FIXME */);
usb_register_port(&s->bus, &s->port, s, 0, NULL, &musb_port_ops,
USB_SPEED_MASK_LOW | USB_SPEED_MASK_FULL);
+ usb_port_location(&s->port, NULL, 1);
return s;
}