]> Gentwo Git Trees - linux/.git/commit
phy: exynos5-usbdrd: convert udelay() to fsleep()
authorAndré Draszik <andre.draszik@linaro.org>
Tue, 7 May 2024 14:14:45 +0000 (15:14 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 12 Jun 2024 11:17:28 +0000 (16:47 +0530)
commit27f3d3f6d87f650cc6b3ea08335dea749f1b04aa
tree99472f87761555c865f60a9f1c861802b576ad2a
parent2a0dc34bab8ede5fa50378ef206f580303eed8de
phy: exynos5-usbdrd: convert udelay() to fsleep()

The timers-howto recommends using usleep_range() and friends anytime
waiting for >= ~10us is required. Doing so can help the timer subsystem
a lot to coalesce wakeups.

Additionally, fsleep() exists as a convenient wrapper so we do not have
to think about which exact sleeping function is required in which case.

Convert all udelay() calls in this driver to use fsleep() to follow the
recommendataion.

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Reviewed-by: Peter Griffin <peter.griffin@linaro.org>
Link: https://lore.kernel.org/r/20240507-samsung-usb-phy-fixes-v1-2-4ccba5afa7cc@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/samsung/phy-exynos5-usbdrd.c