浏览代码

[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>
Duane Grigsby 15 年之前
父节点
当前提交
ca79cf6648
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      drivers/scsi/qla2xxx/qla_os.c

+ 7 - 0
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. */
 	/* Set ISP-type information. */
 	qla2x00_set_isp_flags(ha);
 	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 */
 	/* Configure PCI I/O space */
 	ret = qla2x00_iospace_config(ha);
 	ret = qla2x00_iospace_config(ha);
 	if (ret)
 	if (ret)