Skip to contentSkip to conversation

drivers: net: ls1088ardb: Fix EC1 and EC2 RCW offset

PATCH New Pramod Kumar 3 participants 4 messages Feb 28, 2019 – Mar 15, 2019 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: net: ls1088ardb: Fix EC1 and EC2 RCW offset

Fix EC1 and EC2 read from correct offset 26, instead of 25

---
 drivers/net/ldpaa_eth/ls1088a.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ldpaa_eth/ls1088a.c +2 -2
index 43210532ba..c3260d318c 100644
@@ -93,7 +93,7 @@ void fsl_rgmii_init(void)
 	u32 ec;
 
 #ifdef CONFIG_SYS_FSL_EC1
-	ec = gur_in32(&gur->rcwsr[FSL_CHASSIS3_EC1_REGSR - 1])
+	ec = gur_in32(&gur->rcwsr[FSL_CHASSIS3_EC1_REGSR])
 		& FSL_CHASSIS3_RCWSR25_EC1_PRTCL_MASK;
 	ec >>= FSL_CHASSIS3_RCWSR25_EC1_PRTCL_SHIFT;
 
@@ -102,7 +102,7 @@ void fsl_rgmii_init(void)
 #endif
 
 #ifdef CONFIG_SYS_FSL_EC2
-	ec = gur_in32(&gur->rcwsr[FSL_CHASSIS3_EC2_REGSR - 1])
+	ec = gur_in32(&gur->rcwsr[FSL_CHASSIS3_EC2_REGSR])
 		& FSL_CHASSIS3_RCWSR25_EC2_PRTCL_MASK;
 	ec >>= FSL_CHASSIS3_RCWSR25_EC2_PRTCL_SHIFT;
 
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 drivers: net: ls1088ardb: Fix EC1 and EC2 RCW offset

Dear Joe,

Quoted 11 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Pramod Kumar
Sent: Thursday, February 28, 2019 2:37 PM
To: u-boot at lists.denx.de
Cc: York Sun <[email protected]>
Subject: [U-Boot] [PATCH] drivers: net: ls1088ardb: Fix EC1 and EC2 RCW offset

Fix EC1 and EC2 read from correct offset 26, instead of 25

---

Please review and ack this patch.

I want to send this via u-boot-fsl-qoriq repo.

--pk

#3 lore raw

PATCH 1/1 drivers: net: ls1088ardb: Fix EC1 and EC2 RCW offset

Quoted 9 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Joe Hershberger
Sent: Tuesday, March 5, 2019 12:51 AM
To: Pramod Kumar <[email protected]>
Cc: u-boot at lists.denx.de; York Sun <[email protected]>
Subject: Re: [U-Boot] [PATCH] drivers: net: ls1088ardb: Fix EC1 and EC2 RCW offset

Quoted 8 lines
Quoted 4 lines · Pramod Kumar

Fix EC1 and EC2 read from correct offset 26, instead of 25

Applied to u-boot-fsl-qoriq, awating upstream

--pk