diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2015-10-12 17:22:37 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-17 02:46:27 -0400 |
commit | 05ebc36e48fa53c9cf01271ed11a8415882699f3 (patch) | |
tree | eb644a0294162ad9ef6e52acd0d7be81b4a23739 | |
parent | 0d88002e2729e93d93631743d57e1f36763ce136 (diff) |
usb/host/fotg210: replace msleep by usleep_range
msleep under 20ms can result in sleeping up to 20ms, which may not be
intended. Replace msleep(5) by usleep_range(5000, 10000). The range of 5
ms is to reduce the chances of creating an interrupt while reducing the
maximum wait time in 50%.
Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/host/fotg210-hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index 6ef830809c8d..f3c1a718fe0b 100644 --- a/drivers/usb/host/fotg210-hcd.c +++ b/drivers/usb/host/fotg210-hcd.c | |||
@@ -5085,7 +5085,7 @@ static int fotg210_run(struct usb_hcd *hcd) | |||
5085 | fotg210->rh_state = FOTG210_RH_RUNNING; | 5085 | fotg210->rh_state = FOTG210_RH_RUNNING; |
5086 | /* unblock posted writes */ | 5086 | /* unblock posted writes */ |
5087 | fotg210_readl(fotg210, &fotg210->regs->command); | 5087 | fotg210_readl(fotg210, &fotg210->regs->command); |
5088 | msleep(5); | 5088 | usleep_range(5000, 10000); |
5089 | up_write(&ehci_cf_port_reset_rwsem); | 5089 | up_write(&ehci_cf_port_reset_rwsem); |
5090 | fotg210->last_periodic_enable = ktime_get_real(); | 5090 | fotg210->last_periodic_enable = ktime_get_real(); |
5091 | 5091 | ||