]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/block/nvme-core.c
NVMe: Add nvme subsystem reset support
authorKeith Busch <keith.busch@intel.com>
Mon, 10 Aug 2015 21:20:40 +0000 (15:20 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 18 Aug 2015 17:56:11 +0000 (11:56 -0600)
commitdfbac8c7ac5f58448b2216fe42ff52aaf175421d
tree7c04b5a9131d80100f2c0955fe783022af74dc96
parentb2b1ec9b55ed0840956db15f823c4a73383c08be
NVMe: Add nvme subsystem reset support

Controllers part of an NVMe subsystem may be reset by any other controller
in the subsystem. If the device is capable of subsystem resets, this
patch adds detection for such events and performs appropriate controller
initialization upon subsystem reset detection.

The register bit is a RW1C type, so the driver needs to write a 1 to the
status bit to clear the subsystem reset occured bit during initialization.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c
include/linux/nvme.h