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@kernel.dk>
Wed, 22 Jan 2014 04:20:44 +0000 (20:20 -0800)
commit26d580575b4b8c3c83137315c9a2a77e60a2f716
tree3b17a0e384cae65f77f833186362ea9286441828
parent188b9f49d4b156b0c07ee05bf90ab7b290077d0f
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