]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: drv260x - sleep between polling GO bit
authorLuca Weiss <luca@z3ntu.xyz>
Tue, 2 May 2023 00:01:45 +0000 (17:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 06:37:12 +0000 (08:37 +0200)
commitc516c00847f524b96ea99faa48e94e747623dae2
tree58b776a16833f90b7977a0a0414891c892f84a8e
parent3e789aee218bf3547f9bed1ea848a789008c3b35
Input: drv260x - sleep between polling GO bit

[ Upstream commit efef661dfa6bf8cbafe4cd6a97433fcef0118967 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/misc/drv260x.c