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)
commite286bcfc59e01c2c57f2d79a46063c0bddb7a0d1
tree48aa3e7c839de18819cd72488a769ecf9a2bf928
parent7d6d15789d69856f1c5405e106a773c87277eb8c
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