aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/core/hub.c1
-rw-r--r--include/linux/usb.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index f5adce049b35..78e910b2046c 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -2414,6 +2414,7 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
2414 usb_set_device_state(udev, USB_STATE_POWERED); 2414 usb_set_device_state(udev, USB_STATE_POWERED);
2415 udev->speed = USB_SPEED_UNKNOWN; 2415 udev->speed = USB_SPEED_UNKNOWN;
2416 udev->bus_mA = hub->mA_per_port; 2416 udev->bus_mA = hub->mA_per_port;
2417 udev->level = hdev->level + 1;
2417 2418
2418 /* set the address */ 2419 /* set the address */
2419 choose_address(udev); 2420 choose_address(udev);
diff --git a/include/linux/usb.h b/include/linux/usb.h
index c66303285a45..df5c93eb3ce9 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -348,6 +348,7 @@ struct usb_device {
348 348
349 unsigned short bus_mA; /* Current available from the bus */ 349 unsigned short bus_mA; /* Current available from the bus */
350 u8 portnum; /* Parent port number (origin 1) */ 350 u8 portnum; /* Parent port number (origin 1) */
351 u8 level; /* Number of USB hub ancestors */
351 352
352 int have_langid; /* whether string_langid is valid */ 353 int have_langid; /* whether string_langid is valid */
353 int string_langid; /* language ID for strings */ 354 int string_langid; /* language ID for strings */