aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/pciehp_ctrl.c
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2008-10-22 01:31:44 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-10-22 19:42:45 -0400
commitf18e9625e02bb3e5ba9e81104f14e9d904ab28c4 (patch)
tree688eb9985ec1f85e2c1869a7252004789fb09a14 /drivers/pci/hotplug/pciehp_ctrl.c
parentb84346ef74cf76793070762b933387729c5df1ed (diff)
PCI hotplug: pciehp: poll data link layer link active
This patch adds polling mechanism for Data Link Layer Link Active bit after turning power on, instead of waiting for 1000 msec. This reduces reduce the unnecessary long wait. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/hotplug/pciehp_ctrl.c')
-rw-r--r--drivers/pci/hotplug/pciehp_ctrl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/pciehp_ctrl.c b/drivers/pci/hotplug/pciehp_ctrl.c
index cce6e5f659e..d6c5eb29775 100644
--- a/drivers/pci/hotplug/pciehp_ctrl.c
+++ b/drivers/pci/hotplug/pciehp_ctrl.c
@@ -226,9 +226,6 @@ static int board_added(struct slot *p_slot)
226 if (PWR_LED(ctrl)) 226 if (PWR_LED(ctrl))
227 p_slot->hpc_ops->green_led_blink(p_slot); 227 p_slot->hpc_ops->green_led_blink(p_slot);
228 228
229 /* Wait for ~1 second */
230 msleep(1000);
231
232 /* Check link training status */ 229 /* Check link training status */
233 retval = p_slot->hpc_ops->check_lnk_status(ctrl); 230 retval = p_slot->hpc_ops->check_lnk_status(ctrl);
234 if (retval) { 231 if (retval) {