i2c: nomadik: replace jiffies by ktime for FIFO flushing timeout
authorThéo Lebrun <theo.lebrun@bootlin.com>
Wed, 6 Mar 2024 17:59:26 +0000 (18:59 +0100)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 12 Mar 2024 10:50:44 +0000 (11:50 +0100)
commitc763072ab4533f0669b19c60d8a18b31f2877164
tree8bf948decf2f56be66a71e4096e39c96155b2036
parent7489cd43a2ea26c963c422c08e943a4a616fdb15
i2c: nomadik: replace jiffies by ktime for FIFO flushing timeout

The FIFO flush function uses a jiffies amount to detect timeouts as the
flushing is async. Replace with ktime to get more accurate precision
and support short timeouts.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-nomadik.c