diff options
Diffstat (limited to 'drivers/scsi/qla4xxx')
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_os.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 0d48fb4d1044..fa5ddadf4869 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c | |||
@@ -1721,6 +1721,14 @@ static int __devinit qla4xxx_probe_adapter(struct pci_dev *pdev, | |||
1721 | if (!test_bit(AF_ONLINE, &ha->flags)) { | 1721 | if (!test_bit(AF_ONLINE, &ha->flags)) { |
1722 | ql4_printk(KERN_WARNING, ha, "Failed to initialize adapter\n"); | 1722 | ql4_printk(KERN_WARNING, ha, "Failed to initialize adapter\n"); |
1723 | 1723 | ||
1724 | if (is_qla8022(ha) && ql4xdontresethba) { | ||
1725 | /* Put the device in failed state. */ | ||
1726 | DEBUG2(printk(KERN_ERR "HW STATE: FAILED\n")); | ||
1727 | qla4_8xxx_idc_lock(ha); | ||
1728 | qla4_8xxx_wr_32(ha, QLA82XX_CRB_DEV_STATE, | ||
1729 | QLA82XX_DEV_FAILED); | ||
1730 | qla4_8xxx_idc_unlock(ha); | ||
1731 | } | ||
1724 | ret = -ENODEV; | 1732 | ret = -ENODEV; |
1725 | goto probe_failed; | 1733 | goto probe_failed; |
1726 | } | 1734 | } |