Print this page
XXXX introduce drv_sectohz
@@ -1126,11 +1126,11 @@
goto cleanup2;
}
}
/* wait 1 sec for link to come up */
- delay(drv_usectohz(1000000));
+ delay(drv_sectohz(1));
/* check power is really turned ON */
control = pciehpc_reg_get16(ctrl_p,
bus_p->bus_pcie_off + PCIE_SLOTCTL);
@@ -1165,11 +1165,11 @@
bus_p->bus_pcie_off + PCIE_SLOTCTL);
control |= PCIE_SLOTCTL_EMI_LOCK_CONTROL;
pciehpc_issue_hpc_command(ctrl_p, control);
/* wait 1 sec after toggling the state of EMI lock */
- delay(drv_usectohz(1000000));
+ delay(drv_sectohz(1));
}
}
*result = slot_p->hs_info.cn_state =
DDI_HP_CN_STATE_POWERED;
@@ -1274,11 +1274,11 @@
bus_p->bus_pcie_off + PCIE_SLOTCTL);
control |= PCIE_SLOTCTL_EMI_LOCK_CONTROL;
pciehpc_issue_hpc_command(ctrl_p, control);
/* wait 1 sec after toggling the state of EMI lock */
- delay(drv_usectohz(1000000));
+ delay(drv_sectohz(1));
}
}
/* get the current state of the slot */
pciehpc_get_slot_state(slot_p);