]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/musb/musb_host.c
OMAP:MUSB: Fixes the TT programming.
[linux-2.6-omap-h63xx.git] / drivers / usb / musb / musb_host.c
index 8b4be012669a683b6e4d9ee7764d38defb1aaed8..fcd72b54c8512d4ea86de85ae25f24b7377473bc 100644 (file)
@@ -1873,7 +1873,11 @@ static int musb_urb_enqueue(
                        /* set up tt info if needed */
                        if (urb->dev->tt) {
                                qh->h_port_reg = (u8) urb->dev->ttport;
-                               qh->h_addr_reg |= 0x80;
+                               if (urb->dev->tt->hub)
+                                       qh->h_addr_reg =
+                                               (u8) urb->dev->tt->hub->devnum;
+                               if (urb->dev->tt->multi)
+                                       qh->h_addr_reg |= 0x80;
                        }
                }
        }