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)
commit04d2a3840110e495a119e6226b5c38936b48988a
tree8e7a8f85fad4e1eefde64dd0a0b62b766af269f6
parentb65c6921433c8fcf306b4671f9f9f7c68c36cefc
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