linux-sg2042/drivers/scsi/smartpqi
Erwan Velu 8ef860ae55 scsi: smartpqi: Reporting unhandled SCSI errors
When a HARDWARE_ERROR is triggered for ASC=0x3e, the existing code is only
considering the case where ASCQ=0x1.

According to the http://www.t10.org/lists/asc-num.htm#ASC_3E specification,
other values may occur like a timeout (ASCQ=0x2).

This patch prints an error message when a non-handled message is received.
This can help diagnose a possible misbehavior of the controller or a
missing implementation in the Linux kernel.

This patch keeps the exact same error handling but prints a message if an
ASCQ != 1 is reported.

[mkp: clarified commit message]

Signed-off-by: Erwan Velu <e.velu@criteo.com>
Acked-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2019-05-20 10:56:43 -04:00
..
Kconfig scsi: smartpqi: update Kconfig 2016-09-02 06:27:28 -04:00
Makefile scsi: smartpqi: add spdx 2019-03-18 16:48:28 -04:00
smartpqi.h scsi: smartpqi: add spdx 2019-03-18 16:48:28 -04:00
smartpqi_init.c scsi: smartpqi: Reporting unhandled SCSI errors 2019-05-20 10:56:43 -04:00
smartpqi_sas_transport.c scsi: smartpqi: add spdx 2019-03-18 16:48:28 -04:00
smartpqi_sis.c scsi: smartpqi: add spdx 2019-03-18 16:48:28 -04:00
smartpqi_sis.h scsi: smartpqi: add spdx 2019-03-18 16:48:28 -04:00