phy: samsung: Use readl_poll_timeout function
authorAnand Moon <linux.amoon@gmail.com>
Mon, 20 Jul 2020 17:35:02 +0000 (17:35 +0000)
committerVinod Koul <vkoul@kernel.org>
Sun, 23 Aug 2020 14:06:37 +0000 (19:36 +0530)
commita85643d47d111730f6ad7cf0f5736fcd4164c14b
treef334dfffd5450bd874ff412b1b9f4040d8e20264
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
phy: samsung: Use readl_poll_timeout function

Instead of a busy waiting while loop using udelay
use readl_poll_timeout function to check the condition
is met or timeout occurs in crport_handshake function.
readl_poll_timeout is called in non atomic context so
it safe to sleep until the condition is met.

Signed-off-by: Anand Moon <linux.amoon@gmail.com>
Link: https://lore.kernel.org/r/20200720173502.542-1-linux.amoon@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/samsung/phy-exynos5-usbdrd.c