aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2016-10-20 14:17:18 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-10-24 12:17:43 +1100
commit0074e3d9446e7174a2bff8562241f5cb9eee547e (patch)
tree1dfcc9e2519aea4d21d78e83d86d6581f9aa9b56 /core
parent18d590eee08be63b5971a4e2a80d571c86b3a305 (diff)
downloadskiboot-0074e3d9446e7174a2bff8562241f5cb9eee547e.zip
skiboot-0074e3d9446e7174a2bff8562241f5cb9eee547e.tar.gz
skiboot-0074e3d9446e7174a2bff8562241f5cb9eee547e.tar.bz2
pci: Remove obsoleted PCI slot pfreset() operation
PCI slot pfreset() operation is obsoleted as nobody uses it. This removes it and the related PCI slot states. No functional changes introduced. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Acked-by: Russell Currey <ruscur@russell.cc> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core')
-rw-r--r--core/pci-slot.c3
-rw-r--r--core/pcie-slot.c1
2 files changed, 0 insertions, 4 deletions
diff --git a/core/pci-slot.c b/core/pci-slot.c
index aa4bea6..075b34c 100644
--- a/core/pci-slot.c
+++ b/core/pci-slot.c
@@ -97,9 +97,6 @@ static int64_t pci_slot_sm_poll(struct pci_slot *slot)
case PCI_SLOT_STATE_FRESET:
ret = slot->ops.freset(slot);
break;
- case PCI_SLOT_STATE_PFRESET:
- ret = slot->ops.pfreset(slot);
- break;
case PCI_SLOT_STATE_CRESET:
ret = slot->ops.creset(slot);
break;
diff --git a/core/pcie-slot.c b/core/pcie-slot.c
index 2484570..f9bef64 100644
--- a/core/pcie-slot.c
+++ b/core/pcie-slot.c
@@ -491,7 +491,6 @@ struct pci_slot *pcie_slot_create(struct phb *phb, struct pci_device *pd)
slot->ops.poll_link = pcie_slot_sm_poll_link;
slot->ops.hreset = pcie_slot_sm_hreset;
slot->ops.freset = pcie_slot_sm_freset;
- slot->ops.pfreset = NULL;
return slot;
}