summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDuane Grigsby <duane.grigsby@qlogic.com>2009-12-15 21:29:47 -0800
committerJames Bottomley <James.Bottomley@suse.de>2009-12-30 11:09:50 -0600
commitca79cf664806d833e28c8c05824b2361f59b8bc8 (patch)
treebb2454813b9e4756dcb7196fb985d4ad95b66126 /drivers
parent858808019313f217d63ec4ad26686e6fb7b08c19 (diff)
downloadop-kernel-dev-ca79cf664806d833e28c8c05824b2361f59b8bc8.zip
op-kernel-dev-ca79cf664806d833e28c8c05824b2361f59b8bc8.tar.gz
[SCSI] qla2xxx: Added to EEH support.
Added fundamental reset and pci save state. Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 1ab3582..209f50e 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -1817,6 +1817,13 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
/* Set ISP-type information. */
qla2x00_set_isp_flags(ha);
+
+ /* Set EEH reset type to fundamental if required by hba */
+ if ( IS_QLA24XX(ha) || IS_QLA25XX(ha) || IS_QLA81XX(ha)) {
+ pdev->needs_freset = 1;
+ pci_save_state(pdev);
+ }
+
/* Configure PCI I/O space */
ret = qla2x00_iospace_config(ha);
if (ret)
OpenPOWER on IntegriCloud