Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97406
b: refs/heads/master
c: 0711c70
h: refs/heads/master
v: v3
  • Loading branch information
Kenji Kaneshige authored and Jesse Barnes committed May 27, 2008
1 parent e732bb6 commit 181d449
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6592e02ae4bd7b277230aa0c5821588a13b9d8e3
refs/heads/master: 0711c70ec0e9d2c002b1e9b5fb9f21e49d77f4fd
14 changes: 14 additions & 0 deletions trunk/drivers/pci/hotplug/pciehp_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,13 @@ static void set_slot_off(struct controller *ctrl, struct slot * pslot)
}
}

/*
* After turning power off, we must wait for at least 1 second
* before taking any action that relies on power having been
* removed from the slot/adapter.
*/
msleep(1000);

if (PWR_LED(ctrl))
pslot->hpc_ops->green_led_off(pslot);

Expand Down Expand Up @@ -277,6 +284,13 @@ static int remove_board(struct slot *p_slot)
}
}

/*
* After turning power off, we must wait for at least 1 second
* before taking any action that relies on power having been
* removed from the slot/adapter.
*/
msleep(1000);

if (PWR_LED(ctrl))
/* turn off Green LED */
p_slot->hpc_ops->green_led_off(p_slot);
Expand Down
7 changes: 0 additions & 7 deletions trunk/drivers/pci/hotplug/pciehp_hpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,13 +754,6 @@ static int hpc_power_off_slot(struct slot * slot)
}
dbg("%s: SLOTCTRL %x write cmd %x\n",
__func__, ctrl->cap_base + SLOTCTRL, slot_cmd);

/*
* After turning power off, we must wait for at least 1 second
* before taking any action that relies on power having been
* removed from the slot/adapter.
*/
msleep(1000);
out:
if (changed)
pcie_unmask_bad_dllp(ctrl);
Expand Down

0 comments on commit 181d449

Please sign in to comment.