mmc: mvsdio: Respect card busy time out from mmc core
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 31 May 2018 10:16:04 +0000 (12:16 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 31 May 2018 13:01:13 +0000 (15:01 +0200)
commit0ef89ec24e7bfe17fb81ec222f3cd39bd5090efc
tree8ed6823e415774b7d331d6689457d6394f69d184
parent4ba9bf98b8996b70d73381e700384ac75b82f745
mmc: mvsdio: Respect card busy time out from mmc core

Instead of using a hardcoded timeout of 5 * HZ jiffies, let's respect the
command busy timeout provided by the mmc core. This make the used timeout
more reliable.

Cc: Damien Thebault <damien.thebault@vitec.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Damien Thebault <damien.thebault@vitec.com>
drivers/mmc/host/mvsdio.c