|
@@ -247,6 +247,12 @@ _config_request(struct MPT2SAS_ADAPTER *ioc, Mpi2ConfigRequest_t
|
|
|
retry_count = 0;
|
|
|
|
|
|
retry_config:
|
|
|
+ if (retry_count) {
|
|
|
+ if (retry_count > 2) /* attempt only 2 retries */
|
|
|
+ return -EFAULT;
|
|
|
+ printk(MPT2SAS_INFO_FMT "%s: attempting retry (%d)\n",
|
|
|
+ ioc->name, __func__, retry_count);
|
|
|
+ }
|
|
|
wait_state_count = 0;
|
|
|
ioc_state = mpt2sas_base_get_iocstate(ioc, 1);
|
|
|
while (ioc_state != MPI2_IOC_STATE_OPERATIONAL) {
|