Print this page
XXXX introduce drv_sectohz

*** 1126,1136 **** goto cleanup2; } } /* wait 1 sec for link to come up */ ! delay(drv_usectohz(1000000)); /* check power is really turned ON */ control = pciehpc_reg_get16(ctrl_p, bus_p->bus_pcie_off + PCIE_SLOTCTL); --- 1126,1136 ---- goto cleanup2; } } /* wait 1 sec for link to come up */ ! delay(drv_sectohz(1)); /* check power is really turned ON */ control = pciehpc_reg_get16(ctrl_p, bus_p->bus_pcie_off + PCIE_SLOTCTL);
*** 1165,1175 **** 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)); } } *result = slot_p->hs_info.cn_state = DDI_HP_CN_STATE_POWERED; --- 1165,1175 ---- 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_sectohz(1)); } } *result = slot_p->hs_info.cn_state = DDI_HP_CN_STATE_POWERED;
*** 1274,1284 **** 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)); } } /* get the current state of the slot */ pciehpc_get_slot_state(slot_p); --- 1274,1284 ---- 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_sectohz(1)); } } /* get the current state of the slot */ pciehpc_get_slot_state(slot_p);