diff options
author | Richard Lary <rlary@us.ibm.com> | 2010-02-18 18:07:29 (GMT) |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-02-19 16:47:15 (GMT) |
commit | 8c1496bda8aeeafd78ecf0c25c060b601e58dedf (patch) | |
tree | fee4b78346be9ca5caea7e06720f0e60a48463cc /drivers/scsi/qla2xxx/qla_os.c | |
parent | ae97c91eb1f139b19c1e7cbc5c1380dae8ad874e (diff) | |
download | linux-fsl-qoriq-8c1496bda8aeeafd78ecf0c25c060b601e58dedf.tar.xz |
[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>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index a1aef66..46720b2 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) 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 |