summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/pciehp_ctrl.c
diff options
context:
space:
mode:
authorKenji Kaneshige2008-10-22 07:31:44 +0200
committerJesse Barnes2008-10-23 01:42:45 +0200
commitf18e9625e02bb3e5ba9e81104f14e9d904ab28c4 (patch)
tree688eb9985ec1f85e2c1869a7252004789fb09a14 /drivers/pci/hotplug/pciehp_ctrl.c
parentPCI hotplug: pciehp: fix possible memory leak in pcie_init (diff)
downloadkernel-qcow2-linux-f18e9625e02bb3e5ba9e81104f14e9d904ab28c4.tar.gz
kernel-qcow2-linux-f18e9625e02bb3e5ba9e81104f14e9d904ab28c4.tar.xz
kernel-qcow2-linux-f18e9625e02bb3e5ba9e81104f14e9d904ab28c4.zip
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 cce6e5f659e8..d6c5eb297753 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)
if (PWR_LED(ctrl))
p_slot->hpc_ops->green_led_blink(p_slot);
- /* Wait for ~1 second */
- msleep(1000);
-
/* Check link training status */
retval = p_slot->hpc_ops->check_lnk_status(ctrl);
if (retval) {