mtip32xx: fix handling of commands in various scenarios
commitc74b0f586fa3cbc92ca451836fd75ae7a3fa85ac
authorAsai Thambi S P <asamymuthupa@micron.com>
Mon, 9 Apr 2012 06:35:39 +0000 (9 08:35 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Apr 2012 06:35:39 +0000 (9 08:35 +0200)
tree75d9e1086d2cc934568df2aef91ec552825adad5
parent8a857a880bd83ba4f217d55dd4a623a7e4b5cb47
mtip32xx: fix handling of commands in various scenarios

* If a ncq  command time out and a non-ncq command is active, skip restart port
* Queue(pause) ncq commands during operations spanning more than one non-ncq commands - secure erase, download microcode
* When a non-ncq command is active, allow incoming non-ncq commands to wait instead of failing back
* Changed timeout for download microcode and smart commands
* If the device in write protect mode, fail all writes (do not send to device)
* Set maximum retries to 2

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