diff options
author | Tom Rini <trini@konsulko.com> | 2016-01-02 12:24:43 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-01-02 12:24:43 -0500 |
commit | d83c25c318564080ce647795e5ee49133b97e87d (patch) | |
tree | 90a3a706c345d8f64f415ecdc22e8ff0efa3bf73 /drivers/usb/musb-new/musb_host.c | |
parent | 8e8106dcd540e4c735da6a0b71919747c15ce93a (diff) | |
parent | ac3abf0b7d3a0c59a8a6697efbe9187692f199f0 (diff) |
Merge git://git.denx.de/u-boot-usb
Diffstat (limited to 'drivers/usb/musb-new/musb_host.c')
-rw-r--r-- | drivers/usb/musb-new/musb_host.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/usb/musb-new/musb_host.c b/drivers/usb/musb-new/musb_host.c index 40b9c66af8..2515447308 100644 --- a/drivers/usb/musb-new/musb_host.c +++ b/drivers/usb/musb-new/musb_host.c @@ -2092,9 +2092,13 @@ int musb_urb_enqueue( } #else if (tt_needed(musb, urb->dev)) { - u16 hub_port = find_tt(urb->dev); - qh->h_addr_reg = (u8) (hub_port >> 8); - qh->h_port_reg = (u8) (hub_port & 0xff); + uint8_t portnr = 0; + uint8_t hubaddr = 0; + usb_find_usb2_hub_address_port(urb->dev, + &hubaddr, + &portnr); + qh->h_addr_reg = hubaddr; + qh->h_port_reg = portnr; } #endif } |