Skip to content
Snippets Groups Projects
Commit 13e360ac authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Dmitry Torokhov
Browse files

Input: cyapa - use msleep() for long delay


ulseep_range() uses hrtimers and provides no advantage over msleep()
for larger delays. Fix up the 50ms delays here to use msleep() and
reduce the load on the hrtimer subsystem.

Signed-off-by: default avatarNicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent cd4c1b41
No related branches found
No related tags found
No related merge requests found
...@@ -562,7 +562,7 @@ static int cyapa_gen3_bl_exit(struct cyapa *cyapa) ...@@ -562,7 +562,7 @@ static int cyapa_gen3_bl_exit(struct cyapa *cyapa)
* Wait for bootloader to exit, and operation mode to start. * Wait for bootloader to exit, and operation mode to start.
* Normally, this takes at least 50 ms. * Normally, this takes at least 50 ms.
*/ */
usleep_range(50000, 100000); msleep(50);
/* /*
* In addition, when a device boots for the first time after being * In addition, when a device boots for the first time after being
* updated to new firmware, it must first calibrate its sensors, which * updated to new firmware, it must first calibrate its sensors, which
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment