NVMe: Use normal shutdown
authorKeith Busch <keith.busch@intel.com>
Mon, 15 Jul 2013 21:02:22 +0000 (15:02 -0600)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Tue, 3 Sep 2013 20:40:32 +0000 (16:40 -0400)
commit1894d8f16afe5ad54b732f0fa6c4e80bd4d40b91
treef1451bcf63fc1ddc60b10ba0f502029da1119e7e
parentf0b50732a979c55c2d15fe8ec4503fa5b3260c53
NVMe: Use normal shutdown

The NVMe spec recommends using the shutdown normal sequence when safely
taking the controller offline instead of hitting CC.EN on the next
start-up to reset the controller. The spec recommends a minimum of 1
second for the shutdown complete. This patch waits 2 seconds to be on
the safe side.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme-core.c
include/linux/nvme.h