]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1e92424a97d290d93ed343ea49ac2bad64846b30
tree3395703aa85a8b0fde68c50bdc1a5efe324441db
parent09a3f505f39cb3c6ea3b7713fcf7151b4f24958a
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