linux/drivers/scsi/aacraid
Raghava Aditya Renukunta 73f5176eca scsi: aacraid: Reorder Adapter status check
commit c421530bf8 upstream.

The driver currently checks the SELF_TEST_FAILED first and then
KERNEL_PANIC next. Under error conditions(boot code failure) both
SELF_TEST_FAILED and KERNEL_PANIC can be set at the same time.

The driver has the capability to reset the controller on an KERNEL_PANIC,
but not on SELF_TEST_FAILED.

Fixed by first checking KERNEL_PANIC and then the others.

Fixes: e8b12f0fb8 ([SCSI] aacraid: Add new code for PMC-Sierra's SRC base controller family)
Signed-off-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Reviewed-by: David Carroll <David.Carroll@microsemi.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-03-12 06:41:45 +01:00
..
aachba.c aacraid: Removed unnecessary checks for NULL 2016-04-29 19:08:24 -04:00
aacraid.h aacraid: do not activate events on non-SRC adapters 2016-05-22 14:53:07 -04:00
commctrl.c aacraid: Check size values after double-fetch from user 2016-08-08 21:34:02 -04:00
comminit.c scsi: aacraid: Fix INTx/MSI-x issue with older controllers 2017-02-14 15:25:39 -08:00
commsup.c aacraid: Log firmware AIF messages 2016-04-29 19:08:24 -04:00
dpcsup.c aacraid: Remove code to needlessly complete fib 2016-04-29 19:08:24 -04:00
linit.c scsi: aacraid: remove wildcard for series 9 controllers 2017-01-09 08:32:22 +01:00
Makefile [SCSI] aacraid: Add new code for PMC-Sierra's SRC based controller family 2011-03-23 11:36:58 -05:00
nark.c [SCSI] aacraid: Use resource_size_t for IO mem pointers and offsets 2012-07-20 08:58:43 +01:00
rkt.c [SCSI] aacraid: Use resource_size_t for IO mem pointers and offsets 2012-07-20 08:58:43 +01:00
rx.c aacraid: Add Power Management support 2015-11-09 15:59:18 -08:00
sa.c aacraid: Add Power Management support 2015-11-09 15:59:18 -08:00
src.c scsi: aacraid: Reorder Adapter status check 2017-03-12 06:41:45 +01:00
TODO [SCSI] aacraid: Newer adapter communication iterface support 2005-10-28 11:41:53 -05:00