diff options
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_mbx.c')
| -rw-r--r-- | drivers/scsi/qla4xxx/ql4_mbx.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_mbx.c b/drivers/scsi/qla4xxx/ql4_mbx.c index 4c2b84870392..c2593782fbbe 100644 --- a/drivers/scsi/qla4xxx/ql4_mbx.c +++ b/drivers/scsi/qla4xxx/ql4_mbx.c | |||
| @@ -41,6 +41,16 @@ int qla4xxx_mailbox_command(struct scsi_qla_host *ha, uint8_t inCount, | |||
| 41 | return status; | 41 | return status; |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | if (is_qla40XX(ha)) { | ||
| 45 | if (test_bit(AF_HA_REMOVAL, &ha->flags)) { | ||
| 46 | DEBUG2(ql4_printk(KERN_WARNING, ha, "scsi%ld: %s: " | ||
| 47 | "prematurely completing mbx cmd as " | ||
| 48 | "adapter removal detected\n", | ||
| 49 | ha->host_no, __func__)); | ||
| 50 | return status; | ||
| 51 | } | ||
| 52 | } | ||
| 53 | |||
| 44 | if (is_qla8022(ha)) { | 54 | if (is_qla8022(ha)) { |
| 45 | if (test_bit(AF_FW_RECOVERY, &ha->flags)) { | 55 | if (test_bit(AF_FW_RECOVERY, &ha->flags)) { |
| 46 | DEBUG2(ql4_printk(KERN_WARNING, ha, "scsi%ld: %s: " | 56 | DEBUG2(ql4_printk(KERN_WARNING, ha, "scsi%ld: %s: " |
| @@ -413,6 +423,7 @@ qla4xxx_update_local_ifcb(struct scsi_qla_host *ha, | |||
| 413 | memcpy(ha->name_string, init_fw_cb->iscsi_name, | 423 | memcpy(ha->name_string, init_fw_cb->iscsi_name, |
| 414 | min(sizeof(ha->name_string), | 424 | min(sizeof(ha->name_string), |
| 415 | sizeof(init_fw_cb->iscsi_name))); | 425 | sizeof(init_fw_cb->iscsi_name))); |
| 426 | ha->def_timeout = le16_to_cpu(init_fw_cb->def_timeout); | ||
| 416 | /*memcpy(ha->alias, init_fw_cb->Alias, | 427 | /*memcpy(ha->alias, init_fw_cb->Alias, |
| 417 | min(sizeof(ha->alias), sizeof(init_fw_cb->Alias)));*/ | 428 | min(sizeof(ha->alias), sizeof(init_fw_cb->Alias)));*/ |
| 418 | 429 | ||
