diff options
Diffstat (limited to 'drivers/scsi/bnx2i/bnx2i_init.c')
-rw-r--r-- | drivers/scsi/bnx2i/bnx2i_init.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/scsi/bnx2i/bnx2i_init.c b/drivers/scsi/bnx2i/bnx2i_init.c index 72a7b2d4a439..6afaa34222af 100644 --- a/drivers/scsi/bnx2i/bnx2i_init.c +++ b/drivers/scsi/bnx2i/bnx2i_init.c | |||
@@ -161,6 +161,21 @@ void bnx2i_start(void *handle) | |||
161 | struct bnx2i_hba *hba = handle; | 161 | struct bnx2i_hba *hba = handle; |
162 | int i = HZ; | 162 | int i = HZ; |
163 | 163 | ||
164 | if (!hba->cnic->max_iscsi_conn) { | ||
165 | printk(KERN_ALERT "bnx2i: dev %s does not support " | ||
166 | "iSCSI\n", hba->netdev->name); | ||
167 | |||
168 | if (test_bit(BNX2I_CNIC_REGISTERED, &hba->reg_with_cnic)) { | ||
169 | mutex_lock(&bnx2i_dev_lock); | ||
170 | list_del_init(&hba->link); | ||
171 | adapter_count--; | ||
172 | hba->cnic->unregister_device(hba->cnic, CNIC_ULP_ISCSI); | ||
173 | clear_bit(BNX2I_CNIC_REGISTERED, &hba->reg_with_cnic); | ||
174 | mutex_unlock(&bnx2i_dev_lock); | ||
175 | bnx2i_free_hba(hba); | ||
176 | } | ||
177 | return; | ||
178 | } | ||
164 | bnx2i_send_fw_iscsi_init_msg(hba); | 179 | bnx2i_send_fw_iscsi_init_msg(hba); |
165 | while (!test_bit(ADAPTER_STATE_UP, &hba->adapter_state) && i--) | 180 | while (!test_bit(ADAPTER_STATE_UP, &hba->adapter_state) && i--) |
166 | msleep(BNX2I_INIT_POLL_TIME); | 181 | msleep(BNX2I_INIT_POLL_TIME); |