diff options
author | Nikhil Badola <nikhil.badola@freescale.com> | 2014-12-04 04:53:10 (GMT) |
---|---|---|
committer | Xie Xiaobo <xiaobo.xie@nxp.com> | 2017-09-25 07:25:28 (GMT) |
commit | 234083bf90819f552ca62db634d49c9ed2af6962 (patch) | |
tree | c46200ed652bd8bac1cb204b3a756f878172d8ba | |
parent | 2647518f5414f875a872eb76b2122668ca3627c1 (diff) | |
download | linux-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>
-rw-r--r-- | drivers/usb/host/ehci-hub.c | 2 |
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; } } |