aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Lary <rlary@us.ibm.com>2010-02-18 13:07:29 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-02-19 11:47:15 -0500
commit8c1496bda8aeeafd78ecf0c25c060b601e58dedf (patch)
treefee4b78346be9ca5caea7e06720f0e60a48463cc
parentae97c91eb1f139b19c1e7cbc5c1380dae8ad874e (diff)
[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>
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index a1aef661108b..46720b23028f 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -3362,6 +3362,11 @@ qla2xxx_pci_slot_reset(struct pci_dev *pdev)
3362 3362
3363 pci_restore_state(pdev); 3363 pci_restore_state(pdev);
3364 3364
3365 /* pci_restore_state() clears the saved_state flag of the device
3366 * save restored state which resets saved_state flag
3367 */
3368 pci_save_state(pdev);
3369
3365 if (ha->mem_only) 3370 if (ha->mem_only)
3366 rc = pci_enable_device_mem(pdev); 3371 rc = pci_enable_device_mem(pdev);
3367 else 3372 else