summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb-new/musb_uboot.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-04-10 19:55:08 -0400
committerTom Rini <trini@konsulko.com>2016-04-10 19:55:08 -0400
commit7e8f270292ebacb25f366181f2022c819e5c7586 (patch)
tree841cf474e29eedf6c173da8d1901d3b24d06ecbd /drivers/usb/musb-new/musb_uboot.c
parente16e137c377c8b96d8d91263d0b6d8470169f841 (diff)
parent192eab9357473e09218e0a4448b220d691d9d886 (diff)
downloadtalos-obmc-uboot-7e8f270292ebacb25f366181f2022c819e5c7586.tar.gz
talos-obmc-uboot-7e8f270292ebacb25f366181f2022c819e5c7586.zip
Merge branch 'master' of git://git.denx.de/u-boot-usb
Diffstat (limited to 'drivers/usb/musb-new/musb_uboot.c')
-rw-r--r--drivers/usb/musb-new/musb_uboot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/musb-new/musb_uboot.c b/drivers/usb/musb-new/musb_uboot.c
index 233a0e4a5e..6ce528c81e 100644
--- a/drivers/usb/musb-new/musb_uboot.c
+++ b/drivers/usb/musb-new/musb_uboot.c
@@ -237,8 +237,10 @@ int musb_lowlevel_init(struct musb_host_data *host)
if (musb_readb(mbase, MUSB_DEVCTL) & MUSB_DEVCTL_HM)
break;
} while (get_timer(0) < timeout);
- if (get_timer(0) >= timeout)
+ if (get_timer(0) >= timeout) {
+ musb_stop(host->host);
return -ENODEV;
+ }
_musb_reset_root_port(host, NULL);
host->host->is_active = 1;
OpenPOWER on IntegriCloud