]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Stop adapter if pci errors detected
authorJames Smart <jsmart2021@gmail.com>
Tue, 12 Mar 2019 23:30:13 +0000 (16:30 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Mar 2019 16:57:02 +0000 (12:57 -0400)
commitff5269e3a5ac570b4c4fbe3af537e3291b7ad8ce
treef671c5bd01d909ff7d14ad84b18e9c5a4d3d2bbb
parent9de7dde003eb6ac02f8f8a3954fc0f12ef0309a6
scsi: lpfc: Stop adapter if pci errors detected

In a couple of cases, the driver detected a pci error (via pci device state
or via failed register reads) but didn't take any action to disable the
device.  Additionally, the driver is ignoring the status of pci
configuration space reads.

Having the driver take the adapter offline whenever the pci error is
detected.  Pay attention to pci_config_space_read status and return failure
if an error is seen.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/lpfc/lpfc_sli.c