diff options
author | Luca Weiss <luca@z3ntu.xyz> | 2023-05-01 17:01:45 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2023-05-01 17:07:09 -0700 |
commit | efef661dfa6bf8cbafe4cd6a97433fcef0118967 (patch) | |
tree | 44c8a75bd822a57bde445648aebf3e709f0c530b /drivers/input/misc | |
parent | 116721a560d66dee488f291a1d218b5fc6050678 (diff) | |
download | linux-efef661dfa6bf8cbafe4cd6a97433fcef0118967.tar.gz linux-efef661dfa6bf8cbafe4cd6a97433fcef0118967.tar.bz2 linux-efef661dfa6bf8cbafe4cd6a97433fcef0118967.zip |
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>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r-- | drivers/input/misc/drv260x.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/misc/drv260x.c b/drivers/input/misc/drv260x.c index e95c4e775b5d..884d43eb4b61 100644 --- a/drivers/input/misc/drv260x.c +++ b/drivers/input/misc/drv260x.c @@ -435,6 +435,7 @@ static int drv260x_init(struct drv260x_data *haptics) } do { + usleep_range(15000, 15500); error = regmap_read(haptics->regmap, DRV260X_GO, &cal_buf); if (error) { dev_err(&haptics->client->dev, |