]> git.sur5r.net Git - u-boot/commitdiff
USB: Set portnr so USB1.1 and 1.0 devices work on EHCI controllers
authorMarek Vasut <marek.vasut@gmail.com>
Tue, 12 Jul 2011 00:16:47 +0000 (02:16 +0200)
committerRemy Bohmer <linux@bohmer.net>
Mon, 8 Aug 2011 19:46:04 +0000 (21:46 +0200)
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
common/usb.c

index 4f7c520b344d7676d20a604be5c63d96b672efac..6a7df077104681c988595b02bd42bcdc4afd06d3 100644 (file)
@@ -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 */