Input: cyapa - use time based retry loop
authorNicholas Mc Guire <hofrat@osadl.org>
Sun, 15 Jan 2017 23:18:03 +0000 (15:18 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 15 Jan 2017 23:40:11 +0000 (15:40 -0800)
commitcd4c1b412d4dd094c2ec02be4f0ee41bcc386170
tree5f86c3937e25bbc3e657ba9870323a84aab5d844
parentde901cc31d151c4c855346c29fb61eaf5ffac3ad
Input: cyapa - use time based retry loop

Using counter based retry loops for peripherals results in the delay
being significantly overrun during high-load situations where delay
functions tend to be vary imprecise and overrun there timeouts. So
condition the termination on the actual condition of 2s for the
re-calibration to have been successful.

As this is a very long delay there is no advantage in using
high-resolution timers thus switching this to msleep().

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/cyapa_gen3.c