diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index cc6ebb609e98..7e53814daaa5 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -736,7 +736,7 @@ qla2x00_alloc_fw_dump(scsi_qla_host_t *ha) | |||
736 | fixed_size = offsetof(struct qla2300_fw_dump, data_ram); | 736 | fixed_size = offsetof(struct qla2300_fw_dump, data_ram); |
737 | mem_size = (ha->fw_memory_size - 0x11000 + 1) * | 737 | mem_size = (ha->fw_memory_size - 0x11000 + 1) * |
738 | sizeof(uint16_t); | 738 | sizeof(uint16_t); |
739 | } else if (IS_QLA24XX(ha) || IS_QLA54XX(ha)) { | 739 | } else if (IS_FWI2_CAPABLE(ha)) { |
740 | fixed_size = offsetof(struct qla24xx_fw_dump, ext_mem); | 740 | fixed_size = offsetof(struct qla24xx_fw_dump, ext_mem); |
741 | mem_size = (ha->fw_memory_size - 0x100000 + 1) * | 741 | mem_size = (ha->fw_memory_size - 0x100000 + 1) * |
742 | sizeof(uint32_t); | 742 | sizeof(uint32_t); |
@@ -2267,7 +2267,7 @@ qla2x00_configure_fabric(scsi_qla_host_t *ha) | |||
2267 | scsi_qla_host_t *pha = to_qla_parent(ha); | 2267 | scsi_qla_host_t *pha = to_qla_parent(ha); |
2268 | 2268 | ||
2269 | /* If FL port exists, then SNS is present */ | 2269 | /* If FL port exists, then SNS is present */ |
2270 | if (IS_QLA24XX(ha) || IS_QLA54XX(ha)) | 2270 | if (IS_FWI2_CAPABLE(ha)) |
2271 | loop_id = NPH_F_PORT; | 2271 | loop_id = NPH_F_PORT; |
2272 | else | 2272 | else |
2273 | loop_id = SNS_FL_PORT; | 2273 | loop_id = SNS_FL_PORT; |
@@ -2294,7 +2294,7 @@ qla2x00_configure_fabric(scsi_qla_host_t *ha) | |||
2294 | qla2x00_fdmi_register(ha); | 2294 | qla2x00_fdmi_register(ha); |
2295 | 2295 | ||
2296 | /* Ensure we are logged into the SNS. */ | 2296 | /* Ensure we are logged into the SNS. */ |
2297 | if (IS_QLA24XX(ha) || IS_QLA54XX(ha)) | 2297 | if (IS_FWI2_CAPABLE(ha)) |
2298 | loop_id = NPH_SNS; | 2298 | loop_id = NPH_SNS; |
2299 | else | 2299 | else |
2300 | loop_id = SIMPLE_NAME_SERVER; | 2300 | loop_id = SIMPLE_NAME_SERVER; |
@@ -4012,7 +4012,7 @@ qla2x00_try_to_stop_firmware(scsi_qla_host_t *ha) | |||
4012 | { | 4012 | { |
4013 | int ret, retries; | 4013 | int ret, retries; |
4014 | 4014 | ||
4015 | if (!IS_QLA24XX(ha) && !IS_QLA54XX(ha)) | 4015 | if (!IS_FWI2_CAPABLE(ha)) |
4016 | return; | 4016 | return; |
4017 | if (!ha->fw_major_version) | 4017 | if (!ha->fw_major_version) |
4018 | return; | 4018 | return; |