mmc: tmio: Replace msleep() of 20ms or less with usleep_range()
authorMasaharu Hayakawa <masaharu.hayakawa.ry@renesas.com>
Fri, 3 Nov 2017 09:36:28 +0000 (10:36 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 7 Nov 2017 12:42:53 +0000 (13:42 +0100)
commit1f27ddf0b50b45eaf0f95565125cf10f9c821746
tree460b1ce27843012f6f6f785da84f357ad967ba5d
parent379777297cb130b8b23f82b34ea889c31e828a8c
mmc: tmio: Replace msleep() of 20ms or less with usleep_range()

As documented in Documentation/timers/timers-howto.txt
as follows, replace msleep() with usleep_range().

msleep(1~20) may not do what the caller intends, and
will often sleep longer (~20 ms actual sleep for any
value given in the 1~20ms range). In many cases this
is not the desired behavior.

Signed-off-by: Masaharu Hayakawa <masaharu.hayakawa.ry@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc_core.c