scsi: qedi: Fix firmware halt over suspend and resume
authorNilesh Javali <njavali@marvell.com>
Mon, 7 Aug 2023 09:37:25 +0000 (15:07 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Aug 2023 01:34:08 +0000 (21:34 -0400)
commit1516ee035df32115197cd93ae3619dba7b020986
tree683fa7ec0bb107a9590efece9cb6b1c2cee0daa9
parentdd64f80587190265ca8a0f4be6c64c2fda6d3ac2
scsi: qedi: Fix firmware halt over suspend and resume

While performing certain power-off sequences, PCI drivers are called to
suspend and resume their underlying devices through PCI PM (power
management) interface. However the hardware does not support PCI PM
suspend/resume operations so system wide suspend/resume leads to bad MFW
(management firmware) state which causes various follow-up errors in driver
when communicating with the device/firmware.

To fix this driver implements PCI PM suspend handler to indicate
unsupported operation to the PCI subsystem explicitly, thus avoiding system
to go into suspended/standby mode.

Fixes: ace7f46ba5fd ("scsi: qedi: Add QLogic FastLinQ offload iSCSI driver framework.")
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Link: https://lore.kernel.org/r/20230807093725.46829-2-njavali@marvell.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedi/qedi_main.c