From: John Jacques <[email protected]> Match the coefficient order in the device tree, which is serdes then lane instead of by lane.
Signed-off-by: John Jacques <[email protected]> --- drivers/misc/axxia-pei.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/axxia-pei.c b/drivers/misc/axxia-pei.c index b24f819..0385306 100644 --- a/drivers/misc/axxia-pei.c +++ b/drivers/misc/axxia-pei.c @@ -1133,7 +1133,7 @@ update_settings(void) unsigned int boost; unsigned int value; - if (4 > i) { + if (0 == (i % 2)) { eq_main = coefficients.lane_0_eq_main; pre = coefficients.lane_0_eq_pre; post = coefficients.lane_0_eq_post; @@ -1145,7 +1145,7 @@ update_settings(void) boost = coefficients.lane_1_vboost; } - switch (i % 4) { + switch (i / 2) { case 0: eq_main &= 0xbf; pre &= 0x3f; -- 2.7.4 -- _______________________________________________ linux-yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/linux-yocto
