aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorLuluTHSu <Lulu_Su@wistron.com>2020-12-09 16:40:53 +0800
committerVasant Hegde <hegdevasant@linux.vnet.ibm.com>2020-12-15 13:22:43 +0530
commitde20b93849c3cdee62ff066e079b5460737e8609 (patch)
tree7655b9ff8b6308d7183998a004922d8f88e3dcff /hw
parenta4101173cacf79fcd91d395ab12aac9cb6840975 (diff)
downloadskiboot-de20b93849c3cdee62ff066e079b5460737e8609.zip
skiboot-de20b93849c3cdee62ff066e079b5460737e8609.tar.gz
skiboot-de20b93849c3cdee62ff066e079b5460737e8609.tar.bz2
Revert "mowgli: Limit slot1 to Gen3 by default"
This reverts commit 5262cdd1b99f77bca5951fc8132f9795ef0c2b87. When link reset/retrain, this method cannot maintain the max-link-speed limit, so remove it. Signed-off-by: LuluTHSu <Lulu_Su@wistron.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/phb4.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/hw/phb4.c b/hw/phb4.c
index 99455d8..e7758d3 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -2991,26 +2991,6 @@ static unsigned int phb4_get_max_link_speed(struct phb4 *p, struct dt_node *np)
return max_link_speed;
}
-/*
- * Has the same effect as the ibm,max-link-speed property.
- * i.e. sets the default link speed, while allowing NVRAM
- * overrides, etc to still take effect.
- */
-void phb4_set_dt_max_link_speed(struct phb4 *p, int new_max)
-{
- uint64_t scr;
- int max;
-
- /* take into account nvram settings, etc */
- if (pcie_max_link_speed)
- max = pcie_max_link_speed;
- else
- max = new_max;
-
- scr = phb4_read_reg(p, PHB_PCIE_SCR);
- scr = SETFIELD(PHB_PCIE_SCR_MAXLINKSPEED, scr, max);
- phb4_write_reg(p, PHB_PCIE_SCR, scr);
-}
static void phb4_assert_perst(struct pci_slot *slot, bool assert)
{