]> git.baikalelectronics.ru Git - uboot.git/commit
nvme: Respect timeout when en/disabling the controller
authorBin Meng <bmeng.cn@gmail.com>
Tue, 22 Aug 2017 15:15:11 +0000 (08:15 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 28 Aug 2017 11:17:12 +0000 (07:17 -0400)
commitbeb7251aab1fda8ddeb225e6e40d7cae41da0332
tree8e7a8f85fad4e1eefde64dd0a0b62b766af269f6
parent3b394b0a7dfe7392f66666a70eba4442451516f0
nvme: Respect timeout when en/disabling the controller

So far the driver unconditionally delays 10ms when en/disabling the
controller and still return 0 if 10ms times out. In fact, spec defines
a timeout value in the CAP register that is the worst case time that
host software shall wait for the controller to become ready.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/nvme/nvme.c