scsi: qla2xxx: Handle PCIe error for driver
authorSawan Chandak <sawan.chandak@cavium.com>
Wed, 23 Aug 2017 22:05:00 +0000 (15:05 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:29:20 +0000 (22:29 -0400)
commitefdb57607fb0447e05eb0ce404d6a708a76e4ba7
treeddbd6d26478cd325b30a1923c572bfe6f03e1cda
parentd7936a96e45c8a5b7ad21113f945b4de0c683a37
scsi: qla2xxx: Handle PCIe error for driver

Driver will perform following

- Set PFLG_DRIVER_REMOVING flag and do not disable PCIe error reporting
  during adapter shutdown.
- If PCIe device count is already zero, return correct error type from
  PCI error interface.
- When device is offline, return correct error type from PCIe error
  path.
- If there is board disable thread active during shutdown and PCIe
  device count is zero then cancel scheduling board disable thread
  during shutdown and return.

Signed-off-by: Sawan Chandak <sawan.chandak@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_os.c