Print this page
XXXX introduce drv_sectohz
*** 4366,4376 ****
if (i++ > 30) {
break;
}
mutex_exit(&EMLXS_PORT_LOCK);
! delay(drv_usectohz(1000000));
mutex_enter(&EMLXS_PORT_LOCK);
}
if (hba->sli_mode <= EMLXS_HBA_SLI3_MODE) {
switch (mode) {
--- 4366,4376 ----
if (i++ > 30) {
break;
}
mutex_exit(&EMLXS_PORT_LOCK);
! delay(drv_sectohz(1));
mutex_enter(&EMLXS_PORT_LOCK);
}
if (hba->sli_mode <= EMLXS_HBA_SLI3_MODE) {
switch (mode) {
*** 4461,4471 ****
if (i++ > 30) {
break;
}
mutex_exit(&EMLXS_PORT_LOCK);
! delay(drv_usectohz(1000000));
mutex_enter(&EMLXS_PORT_LOCK);
}
/* Return current state */
if (hba->flag & FC_ONLINE_MODE) {
--- 4461,4471 ----
if (i++ > 30) {
break;
}
mutex_exit(&EMLXS_PORT_LOCK);
! delay(drv_sectohz(1));
mutex_enter(&EMLXS_PORT_LOCK);
}
/* Return current state */
if (hba->flag & FC_ONLINE_MODE) {
*** 4544,4554 ****
if (i++ > 30) {
break;
}
mutex_exit(&EMLXS_PORT_LOCK);
! delay(drv_usectohz(1000000));
mutex_enter(&EMLXS_PORT_LOCK);
}
/* Return current state */
if (hba->flag & FC_ONLINE_MODE) {
--- 4544,4554 ----
if (i++ > 30) {
break;
}
mutex_exit(&EMLXS_PORT_LOCK);
! delay(drv_sectohz(1));
mutex_enter(&EMLXS_PORT_LOCK);
}
/* Return current state */
if (hba->flag & FC_ONLINE_MODE) {
*** 8322,8332 ****
rval = DFC_IO_ERROR;
if (mbxstatus == MBX_TIMEOUT)
rval = DFC_TIMEOUT;
}
! delay(drv_usectohz(1000000));
i = 0;
while ((hba->state < FC_LINK_UP) && (hba->state != FC_ERROR)) {
delay(drv_usectohz(100000));
i++;
--- 8322,8332 ----
rval = DFC_IO_ERROR;
if (mbxstatus == MBX_TIMEOUT)
rval = DFC_TIMEOUT;
}
! delay(drv_sectohz(1));
i = 0;
while ((hba->state < FC_LINK_UP) && (hba->state != FC_ERROR)) {
delay(drv_usectohz(100000));
i++;