Skip to contentSkip to conversation

e1000e: fix S0ix flow to allow S0i3.2 subset entry

PATCH New Vitaly Lifshits 2 participants 3 messages Sep 14, 2020 – Oct 9, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 e1000e: fix S0ix flow to allow S0i3.2 subset entry

Changed a configuration in the flows to align with architecture requirements to achieve S0i3.2 substate.

Also fixed a typo in the previous patch- e1000e: fix S0ix flows for cable connected case (632fbd5eb5b).

---
 drivers/net/ethernet/intel/e1000e/netdev.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/net/ethernet/intel/e1000e/netdev.c +4 -4
index a77d39723d8d..2f224478a0c3 100644
@@ -6479,13 +6479,13 @@ static void e1000e_s0ix_entry_flow(struct e1000_adapter *adapter)
 
 	/* Ungate PGCB clock */
 	mac_data = er32(FEXTNVM9);
-	mac_data |= BIT(28);
+	mac_data &= ~BIT(28);
 	ew32(FEXTNVM9, mac_data);
 
 	/* Enable K1 off to enable mPHY Power Gating */
 	mac_data = er32(FEXTNVM6);
 	mac_data |= BIT(31);
-	ew32(FEXTNVM12, mac_data);
+	ew32(FEXTNVM6, mac_data);
 
 	/* Enable mPHY power gating for any link and speed */
 	mac_data = er32(FEXTNVM8);
@@ -6529,11 +6529,11 @@ static void e1000e_s0ix_exit_flow(struct e1000_adapter *adapter)
 	/* Disable K1 off */
 	mac_data = er32(FEXTNVM6);
 	mac_data &= ~BIT(31);
-	ew32(FEXTNVM12, mac_data);
+	ew32(FEXTNVM6, mac_data);
 
 	/* Disable Ungate PGCB clock */
 	mac_data = er32(FEXTNVM9);
-	mac_data &= ~BIT(28);
+	mac_data |= BIT(28);
 	ew32(FEXTNVM9, mac_data);
 
 	/* Cancel not waking from dynamic
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 e1000e: fix S0ix flow to allow S0i3.2 subset entry

Quoted 10 lines

From: Intel-wired-lan <[email protected]> On Behalf Of Vitaly Lifshits
Sent: Monday, September 14, 2020 3:24 AM
To: intel-wired-lan at osuosl.org
Subject: [Intel-wired-lan] [PATCH v1 1/1] e1000e: fix S0ix flow to allow S0i3.2 subset entry

Changed a configuration in the flows to align with architecture requirements to achieve S0i3.2 substate.

Quoted 8 lines

Also fixed a typo in the previous patch- e1000e: fix S0ix flows for cable connected case (632fbd5eb5b).

---
 drivers/net/ethernet/intel/e1000e/netdev.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
#2 lore raw

PATCH 1/1 e1000e: fix S0ix flow to allow S0i3.2 subset entry

In reply to Vitaly Lifshits
Quoted 10 lines

From: Intel-wired-lan <[email protected]> On Behalf Of Vitaly Lifshits
Sent: Monday, September 14, 2020 3:24 AM
To: intel-wired-lan at osuosl.org
Subject: [Intel-wired-lan] [PATCH v1 1/1] e1000e: fix S0ix flow to allow S0i3.2 subset entry

Changed a configuration in the flows to align with architecture requirements to achieve S0i3.2 substate.

Quoted 7 lines

Also fixed a typo in the previous patch- e1000e: fix S0ix flows for cable connected case (632fbd5eb5b).

---
 drivers/net/ethernet/intel/e1000e/netdev.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)