Input: drv260x - sleep between polling GO bit
authorLuca Weiss <luca@z3ntu.xyz>
Tue, 2 May 2023 00:01:45 +0000 (17:01 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 2 May 2023 00:07:09 +0000 (17:07 -0700)
commitefef661dfa6bf8cbafe4cd6a97433fcef0118967
tree44c8a75bd822a57bde445648aebf3e709f0c530b
parent116721a560d66dee488f291a1d218b5fc6050678
Input: drv260x - sleep between polling GO bit

When doing the initial startup there's no need to poll without any
delay and spam the I2C bus.

Let's sleep 15ms between each attempt, which is the same time as used
in the vendor driver.

Fixes: 7132fe4f5687 ("Input: drv260x - add TI drv260x haptics driver")
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Link: https://lore.kernel.org/r/20230430-drv260x-improvements-v1-2-1fb28b4cc698@z3ntu.xyz
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/drv260x.c