Skip to content

Commit

Permalink
phb4: Fix GEN3 for DD2.00
Browse files Browse the repository at this point in the history
In this fix:
  62ac763 phb4: Fix PCIe GEN4 on DD2.1 and above
We fixed DD2.1 GEN4 but broke DD2.00 as GEN3.

This fixes DD2.00 back to GEN3. This time for sure!

Signed-off-by: Michael Neuling <mikey@neuling.org>
Tested-by: Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com>
  • Loading branch information
mikey committed Oct 23, 2017
1 parent 154873b commit 379d745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/phb4.c
Expand Up @@ -4900,7 +4900,7 @@ static void phb4_create(struct dt_node *np)
if (p->rev == PHB4_REV_NIMBUS_DD10)
p->max_link_speed = 2;
if (p->rev == PHB4_REV_NIMBUS_DD20 &&
chip->ec_level == 0 && chip->ec_rev == 0)
((0xf & chip->ec_level) == 0) && chip->ec_rev == 0)
p->max_link_speed = 3;
if (dt_has_node_property(np, "ibm,max-link-speed", NULL))
p->max_link_speed = dt_prop_get_u32(np, "ibm,max-link-speed");
Expand Down

0 comments on commit 379d745

Please sign in to comment.