summaryrefslogtreecommitdiffstats
path: root/common/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/usb.c')
-rw-r--r--common/usb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/usb.c b/common/usb.c
index 4f7c520b34..6a7df07710 100644
--- a/common/usb.c
+++ b/common/usb.c
@@ -1166,6 +1166,7 @@ void usb_hub_port_connect_change(struct usb_device *dev, int port)
dev->children[port] = usb;
usb->parent = dev;
+ usb->portnr = port + 1;
/* Run it through the hoops (find a driver, etc) */
if (usb_new_device(usb)) {
/* Woops, disable the port */
OpenPOWER on IntegriCloud