aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2017-09-12 14:56:14 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-09-12 23:04:07 -0500
commit2ba68c4886b27d25a96a6024370fbab1a9b85ff5 (patch)
treee1c8ae7e2a895089c7156680b9beb8d6c9b66c50 /hw
parenta26f055af0d57a1d87f2893042be79f20594d4d9 (diff)
downloadskiboot-2ba68c4886b27d25a96a6024370fbab1a9b85ff5.zip
skiboot-2ba68c4886b27d25a96a6024370fbab1a9b85ff5.tar.gz
skiboot-2ba68c4886b27d25a96a6024370fbab1a9b85ff5.tar.bz2
phb4: Remove stable retries
This code was never used (since retries is set to 0), it's not very useful and it makes the code harder to read. So lets just remove it. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/phb4.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/hw/phb4.c b/hw/phb4.c
index 1e148e0..a40db68 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -2455,7 +2455,6 @@ static int64_t phb4_poll_link(struct pci_slot *slot)
PHBDBG(p, "LINK: Link is up\n");
phb4_prepare_link_change(slot, true);
pci_slot_set_state(slot, PHB4_SLOT_LINK_STABLE);
- slot->stable_retries = PHB4_LINK_STABLE_RETRIES;
return pci_slot_set_sm_timeout(slot, secs_to_tb(1));
}
@@ -2479,12 +2478,6 @@ static int64_t phb4_poll_link(struct pci_slot *slot)
}
if (reg & PHB_PCIE_DLP_TL_LINKACT) {
PHBDBG(p, "LINK: Link is stable\n");
- if (slot->stable_retries--) {
- PHBDBG(p, "LINK: Doing retry: %lli\n",
- slot->stable_retries);
- return pci_slot_set_sm_timeout(slot, secs_to_tb(1));
- }
-
pci_slot_set_state(slot, PHB4_SLOT_NORMAL);
return OPAL_SUCCESS;
}