[linux-yocto] [PATCH 04/48] drivers/misc: Update the Axxia PEI Driver

Daniel Dragomir daniel.dragomir at windriver.com
Mon Dec 11 05:13:34 PST 2017


From: John Jacques <john.jacques at intel.com>

Match the coefficient order in the device tree, which is
serdes then lane instead of by lane.

Signed-off-by: John Jacques <john.jacques at intel.com>
---
 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



More information about the linux-yocto mailing list