]> git.baikalelectronics.ru Git - kernel.git/commit
nvme/pci: re-check security protocol support after reset
authorScott Bauer <scott.bauer@intel.com>
Wed, 22 Feb 2017 17:15:07 +0000 (10:15 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 23 Feb 2017 18:55:43 +0000 (11:55 -0700)
commitace2419b9c070d71157340c79253fbcc2acccefe
tree48aa3e7c839de18819cd72488a769ecf9a2bf928
parent5b419401e695bce8ce8ebc91d3deaabc4ca87d80
nvme/pci: re-check security protocol support after reset

A device may change capabilities after each reset, e.g. due to a firmware
upgrade.  We should thus check for Security Send/Receive and OPAL support
after each reset.

Based on patches from Christoph and Keith.

Signed-off-by: Scott Bauer <scott.bauer@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/pci.c