Commit 2e8b4376 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: Add eeh calls to hotplug driver

From: Anton Blanchard <anton@samba.org>

The ppc64 hotplug code must register and deregister devices with the extended
error handling (EEH) subsystem.
parent 3415edd9
...@@ -257,6 +257,7 @@ static struct pci_dev *rpaphp_config_pci_adapter(struct slot *slot) ...@@ -257,6 +257,7 @@ static struct pci_dev *rpaphp_config_pci_adapter(struct slot *slot)
} }
dev = rpaphp_pci_config_dn(slot->dn, pci_bus); dev = rpaphp_pci_config_dn(slot->dn, pci_bus);
eeh_add_device(dev);
} else { } else {
/* slot is not enabled */ /* slot is not enabled */
err("slot doesn't have pci_dev structure\n"); err("slot doesn't have pci_dev structure\n");
...@@ -281,6 +282,7 @@ int rpaphp_unconfig_pci_adapter(struct slot *slot) ...@@ -281,6 +282,7 @@ int rpaphp_unconfig_pci_adapter(struct slot *slot)
goto exit; goto exit;
} }
/* remove the device from the pci core */ /* remove the device from the pci core */
eeh_remove_device(slot->dev.pci_dev);
pci_remove_bus_device(slot->dev.pci_dev); pci_remove_bus_device(slot->dev.pci_dev);
slot->state = NOT_CONFIGURED; slot->state = NOT_CONFIGURED;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment