commit | 05ebc36e48fa53c9cf01271ed11a8415882699f3 | [log] [tgz] |
---|---|---|
author | Peter Senna Tschudin <peter.senna@gmail.com> | Mon Oct 12 23:22:37 2015 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Oct 16 23:46:27 2015 -0700 |
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>