aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pci/hotplug/pciehp_ctrl.c12
-rw-r--r--drivers/pci/hotplug/pciehp_hpc.c7
2 files changed, 7 insertions, 12 deletions
diff --git a/drivers/pci/hotplug/pciehp_ctrl.c b/drivers/pci/hotplug/pciehp_ctrl.c
index 4cb2c623e17b..b23061c56115 100644
--- a/drivers/pci/hotplug/pciehp_ctrl.c
+++ b/drivers/pci/hotplug/pciehp_ctrl.c
@@ -195,12 +195,6 @@ static void set_slot_off(struct controller *ctrl, struct slot * pslot)
195 __FUNCTION__); 195 __FUNCTION__);
196 return; 196 return;
197 } 197 }
198 /*
199 * After turning power off, we must wait for at least
200 * 1 second before taking any action that relies on
201 * power having been removed from the slot/adapter.
202 */
203 msleep(1000);
204 } 198 }
205} 199}
206 200
@@ -610,12 +604,6 @@ int pciehp_disable_slot(struct slot *p_slot)
610 mutex_unlock(&p_slot->ctrl->crit_sect); 604 mutex_unlock(&p_slot->ctrl->crit_sect);
611 return -EINVAL; 605 return -EINVAL;
612 } 606 }
613 /*
614 * After turning power off, we must wait for at least
615 * 1 second before taking any action that relies on
616 * power having been removed from the slot/adapter.
617 */
618 msleep(1000);
619 } 607 }
620 608
621 ret = remove_board(p_slot); 609 ret = remove_board(p_slot);
diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c
index 8c2d6c9b92c5..b2cde04ede1a 100644
--- a/drivers/pci/hotplug/pciehp_hpc.c
+++ b/drivers/pci/hotplug/pciehp_hpc.c
@@ -674,6 +674,13 @@ static int hpc_power_off_slot(struct slot * slot)
674 dbg("%s: SLOTCTRL %x write cmd %x\n", 674 dbg("%s: SLOTCTRL %x write cmd %x\n",
675 __FUNCTION__, ctrl->cap_base + SLOTCTRL, slot_cmd); 675 __FUNCTION__, ctrl->cap_base + SLOTCTRL, slot_cmd);
676 676
677 /*
678 * After turning power off, we must wait for at least 1 second
679 * before taking any action that relies on power having been
680 * removed from the slot/adapter.
681 */
682 msleep(1000);
683
677 return retval; 684 return retval;
678} 685}
679 686