From: Marek Vasut <marek.vasut@gmail.com>
Date: Tue, 12 Jul 2011 00:16:47 +0000 (+0200)
Subject: USB: Set portnr so USB1.1 and 1.0 devices work on EHCI controllers
X-Git-Tag: v2025.01-rc5-pxa1908~19117
X-Git-Url: http://git.dujemihanovic.xyz/img/static//%22brlog.php?a=commitdiff_plain;h=01a97d45d1be79960570fb345b2c15331f79f053;p=u-boot.git

USB: Set portnr so USB1.1 and 1.0 devices work on EHCI controllers

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
---

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 */