OSDN Git Service

mmc: block: Add timeout_clks when calculating timeout
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 29 Nov 2017 13:41:13 +0000 (15:41 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 11 Dec 2017 11:44:38 +0000 (12:44 +0100)
commit92c0a0cc9483c6b9cc1b61273d30a0a601cb5e15
tree3395703aa85a8b0fde68c50bdc1a5efe324441db
parent0987c6b046e199b9b922a585c62e9503486fe0bc
mmc: block: Add timeout_clks when calculating timeout

According to the specification, total access time is derived from both TAAC
and NSAC, which means the timeout should add both timeout_ns and
timeout_clks. Host drivers do that, so make the block driver do that too.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
drivers/mmc/core/block.c