scsi: aacraid: check adapter health
authorBalsundar P <balsundar.p@microsemi.com>
Tue, 15 Oct 2019 06:22:02 +0000 (11:52 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 18 Oct 2019 23:34:18 +0000 (19:34 -0400)
commitd72b1a4a7b43686e928fc4c27d742ef875e9c202
tree9671bbe558a782765de951661e1f002b47323414
parent8af024b29ac49958f78ab76b2c9d8fe2c5b3c776
scsi: aacraid: check adapter health

Currently driver waits for the command IOCTL from the firmware and if the
firmware enters nonresponsive state, the driver doesn't respond till the
firmware is responsive again.

Check that firmware is alive, otherwise return -EBUSY.

[mkp: clarified commit desc]

Link: https://lore.kernel.org/r/1571120524-6037-6-git-send-email-balsundar.p@microsemi.com
Signed-off-by: Balsundar P <balsundar.p@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/linit.c