summaryrefslogtreecommitdiff
path: root/drivers/usb/host/ehci-hub.c
diff options
context:
space:
mode:
authorNikhil Badola <nikhil.badola@freescale.com>2014-12-04 04:53:10 (GMT)
committerXie Xiaobo <xiaobo.xie@nxp.com>2017-09-25 07:25:28 (GMT)
commit234083bf90819f552ca62db634d49c9ed2af6962 (patch)
treec46200ed652bd8bac1cb204b3a756f878172d8ba /drivers/usb/host/ehci-hub.c
parent2647518f5414f875a872eb76b2122668ca3627c1 (diff)
downloadlinux-234083bf90819f552ca62db634d49c9ed2af6962.tar.xz
usb: host: Modify workaround for USB Erratum A005697
Change the position of delay introduced by erratum A005697 workaround Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com> Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
Diffstat (limited to 'drivers/usb/host/ehci-hub.c')
-rw-r--r--drivers/usb/host/ehci-hub.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c
index 74f62d6..d4a8ec5 100644
--- a/drivers/usb/host/ehci-hub.c
+++ b/drivers/usb/host/ehci-hub.c
@@ -305,6 +305,8 @@ static int ehci_bus_suspend (struct usb_hcd *hcd)
USB_PORT_STAT_HIGH_SPEED)
fs_idle_delay = true;
ehci_writel(ehci, t2, reg);
+ if (ehci_has_fsl_susp_errata(ehci))
+ usleep_range(10000, 20000);
changed = 1;
}
}