[SCSI] qla2xxx: EEH: Restore PCI saved state during pci slot reset.
Cc: stable@kernel.org Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
ae97c91eb1
commit
8c1496bda8
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue