Message ID | 20171116015023.2349-2-mikey@neuling.org |
---|---|
State | Accepted |
Headers | show |
Series | [1/2] hdata: Fix copying GEN4 lane equalisation settings | expand |
diff --git a/hw/phb4.c b/hw/phb4.c index ac474ce1cb..cbd64fb697 100644 --- a/hw/phb4.c +++ b/hw/phb4.c @@ -5183,7 +5183,7 @@ static void phb4_probe_stack(struct dt_node *stk_node, uint32_t pec_index, size_t leq_size; const void *leq = dt_prop_get_def_size(stk_node, "ibm,lane-eq", NULL, &leq_size); - if (leq != NULL && leq_size == 4 * 8) + if (leq != NULL && leq_size >= 6 * 8) dt_add_property(np, "ibm,lane-eq", leq, leq_size); } if (dt_has_node_property(stk_node, "ibm,capp-ucode", NULL)) {
Fix cut and paste from phb3. The sizes have changes now we have GEN4, so the check here needs to change also Without this we end up with the default settings (all '7') rather than what's in HDAT. Signed-off-by: Michael Neuling <mikey@neuling.org> --- hw/phb4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)