summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-hcd.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-06-18 23:46:21 -0400
committerTom Rini <trini@konsulko.com>2016-06-18 23:46:21 -0400
commita10a31ec91ad2ee514a42baea9314553aa972676 (patch)
tree4fa6eff1efde896343c455854b5c78b2b91bd9e9 /drivers/usb/host/ehci-hcd.c
parent2372b0012925f9100980151f4a28347c82feaba8 (diff)
parent1e6fb0e367564d427d7c57fa7b3b972ecb7147a3 (diff)
downloadblackbird-obmc-uboot-a10a31ec91ad2ee514a42baea9314553aa972676.tar.gz
blackbird-obmc-uboot-a10a31ec91ad2ee514a42baea9314553aa972676.zip
Merge branch 'master' of git://git.denx.de/u-boot-usb
Signed-off-by: Tom Rini <trini@konsulko.com> Conflicts: arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h
Diffstat (limited to 'drivers/usb/host/ehci-hcd.c')
-rw-r--r--drivers/usb/host/ehci-hcd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index fa5d584b82..13aa70d606 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -210,6 +210,9 @@ static int ehci_shutdown(struct ehci_ctrl *ctrl)
return -EINVAL;
cmd = ehci_readl(&ctrl->hcor->or_usbcmd);
+ /* If not run, directly return */
+ if (!(cmd & CMD_RUN))
+ return 0;
cmd &= ~(CMD_PSE | CMD_ASE);
ehci_writel(&ctrl->hcor->or_usbcmd, cmd);
ret = handshake(&ctrl->hcor->or_usbsts, STS_ASS | STS_PSS, 0,
OpenPOWER on IntegriCloud