]> Pileus Git - ~andy/linux/commitdiff
[SCSI] qla2xxx: EEH: Restore PCI saved state during pci slot reset.
authorRichard Lary <rlary@us.ibm.com>
Thu, 18 Feb 2010 18:07:29 +0000 (10:07 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 19 Feb 2010 16:47:15 +0000 (10:47 -0600)
Cc: stable@kernel.org
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla2xxx/qla_os.c

index a1aef661108b93afc70b1d6a3153d664d61d856d..46720b23028f72850989cdef77b3a13cd477479f 100644 (file)
@@ -3362,6 +3362,11 @@ qla2xxx_pci_slot_reset(struct pci_dev *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)
                rc = pci_enable_device_mem(pdev);
        else