diff options
Diffstat (limited to 'drivers/scsi/bnx2i/bnx2i_init.c')
-rw-r--r-- | drivers/scsi/bnx2i/bnx2i_init.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/scsi/bnx2i/bnx2i_init.c b/drivers/scsi/bnx2i/bnx2i_init.c index b6f6f436777b..34c294b42c84 100644 --- a/drivers/scsi/bnx2i/bnx2i_init.c +++ b/drivers/scsi/bnx2i/bnx2i_init.c | |||
@@ -172,16 +172,14 @@ void bnx2i_start(void *handle) | |||
172 | struct bnx2i_hba *hba = handle; | 172 | struct bnx2i_hba *hba = handle; |
173 | int i = HZ; | 173 | int i = HZ; |
174 | 174 | ||
175 | /* | 175 | /* On some bnx2x devices, it is possible that iSCSI is no |
176 | * We should never register devices that don't support iSCSI | 176 | * longer supported after firmware is downloaded. In that |
177 | * (see bnx2i_init_one), so something is wrong if we try to | 177 | * case, the iscsi_init_msg will return failure. |
178 | * start a iSCSI adapter on hardware with 0 supported iSCSI | ||
179 | * connections | ||
180 | */ | 178 | */ |
181 | BUG_ON(!hba->cnic->max_iscsi_conn); | ||
182 | 179 | ||
183 | bnx2i_send_fw_iscsi_init_msg(hba); | 180 | bnx2i_send_fw_iscsi_init_msg(hba); |
184 | while (!test_bit(ADAPTER_STATE_UP, &hba->adapter_state) && i--) | 181 | while (!test_bit(ADAPTER_STATE_UP, &hba->adapter_state) && |
182 | !test_bit(ADAPTER_STATE_INIT_FAILED, &hba->adapter_state) && i--) | ||
185 | msleep(BNX2I_INIT_POLL_TIME); | 183 | msleep(BNX2I_INIT_POLL_TIME); |
186 | } | 184 | } |
187 | 185 | ||