]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: Add nvme subsystem reset support
authorKeith Busch <keith.busch@intel.com>
Mon, 10 Aug 2015 21:20:40 +0000 (15:20 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:31:51 +0000 (16:31 -0700)
commit6914f1a03c7b22c76a9e95b3f7891d89d5930a9d
tree8c0dd2e47856c8dfcc55d881620850be2744fb54
parentaeb586a77e2a286a414b304b01101ff7eee93216
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>
(cherry picked from commit dfbac8c7ac5f58448b2216fe42ff52aaf175421d)

Orabug: 22620486
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/block/nvme-core.c
include/linux/nvme.h