]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: mmc: fix switch timeout issue caused by jiffies precision
authorChaotian Jing <chaotian.jing@mediatek.com>
Thu, 19 May 2016 08:47:42 +0000 (16:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 04:22:11 +0000 (06:22 +0200)
commitf93063f1575b3534055989ab606714f2bb09771a
tree8413a6301fb5315578bfefc4f359b12c7e2d7e1a
parent08422dc1dd3169b8b0e4ff4abaf165b5a8e9b63c
mmc: mmc: fix switch timeout issue caused by jiffies precision

[ Upstream commit 987aa5f8059613bf85cbb6f64ffbd34f5cb7a9d1 ]

with CONFIG_HZ=100, the precision of jiffies is 10ms, and the
generic_cmd6_time of some card is also 10ms. then, may be current
time is only 5ms, but already timed out caused by jiffies precision.

Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/core/mmc_ops.c