Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c1496bd authored by Richard Lary's avatar Richard Lary Committed by James Bottomley
Browse files

[SCSI] qla2xxx: EEH: Restore PCI saved state during pci slot reset.



Cc: stable@kernel.org
Signed-off-by: default avatarGiridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent ae97c91e
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -3362,6 +3362,11 @@ qla2xxx_pci_slot_reset(struct pci_dev *pdev)


	pci_restore_state(pdev);
	pci_restore_state(pdev);


	/* pci_restore_state() clears the saved_state flag of the device
	 * save restored state which resets saved_state flag
	 */
	pci_save_state(pdev);

	if (ha->mem_only)
	if (ha->mem_only)
		rc = pci_enable_device_mem(pdev);
		rc = pci_enable_device_mem(pdev);
	else
	else