diff options
| author | Andrew Donnellan <andrew.donnellan@au1.ibm.com> | 2016-07-13 17:17:13 -0400 |
|---|---|---|
| committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-07-14 06:28:10 -0400 |
| commit | 5473a6bf635d35d5c1d12d0e132b51a861a5c973 (patch) | |
| tree | 52c966e61110974d53abd0254805c9b7fd10052a /drivers/pci/hotplug | |
| parent | 89379f165a1be13aa9b4731a9095171142ee1c7b (diff) | |
PCI/hotplug: pnv_php: handle OPAL_PCI_SLOT_OFFLINE power state
When calling pnv_php_set_slot_power_state() with state ==
OPAL_PCI_SLOT_OFFLINE, remove devices from the device tree as if we're
dealing with OPAL_PCI_SLOT_POWER_OFF.
Cc: Gavin Shan <gwshan@linux.vnet.ibm.com>
Cc: linux-pci@vger.kernel.org
Cc: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Acked-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/pci/hotplug')
| -rw-r--r-- | drivers/pci/hotplug/pnv_php.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/pnv_php.c b/drivers/pci/hotplug/pnv_php.c index 2d2f704e1e97..e6245b03f0a1 100644 --- a/drivers/pci/hotplug/pnv_php.c +++ b/drivers/pci/hotplug/pnv_php.c | |||
| @@ -317,7 +317,7 @@ int pnv_php_set_slot_power_state(struct hotplug_slot *slot, | |||
| 317 | return ret; | 317 | return ret; |
| 318 | } | 318 | } |
| 319 | 319 | ||
| 320 | if (state == OPAL_PCI_SLOT_POWER_OFF) | 320 | if (state == OPAL_PCI_SLOT_POWER_OFF || state == OPAL_PCI_SLOT_OFFLINE) |
| 321 | pnv_php_rmv_devtree(php_slot); | 321 | pnv_php_rmv_devtree(php_slot); |
| 322 | else | 322 | else |
| 323 | ret = pnv_php_add_devtree(php_slot); | 323 | ret = pnv_php_add_devtree(php_slot); |
