mtip32xx: Correctly handle security locked condition
authorSam Bradshaw <sbradshaw@micron.com>
Thu, 3 Oct 2013 17:18:05 +0000 (10:18 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:51 +0000 (12:54 -0600)
commita6864293e731d707874cbbd27a3558b0654fa62f
tree0b7e40af02efa9de1ead94bd960a89e2e537ed24
parentb2f5ec63b9b1d7fb8b185e9170d5b01f2f054ec0
mtip32xx: Correctly handle security locked condition

If power is removed during a secure erase, the drive will end up in a
security locked condition.  This patch causes the driver to identify,
log, and flag the security lock state.  IOs are prevented from
submission to the drive until the locked state is addressed with a
secure erase.

Bumped version number to reflect this capability.

Signed-off-by: Sam Bradshaw <sbradshaw@micron.com>
Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c
drivers/block/mtip32xx/mtip32xx.h