Skip to contentSkip to conversation

e1000e: Correct NVM checksum verification flow

PATCH New Sasha Neftin 2 participants 2 messages Feb 3, 2022 – Feb 23, 2022

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

PATCH 1/1 e1000e: Correct NVM checksum verification flow

Update MAC type check e1000_pch_tgp because for e1000_pch_cnp, NVM checksum update is still possible.
Emit a more detailed warning message.

Bugzilla: https://bugzilla.opensuse.org/show_bug.cgi?id=1191663

Fixes 4051f68318ca ("e1000e: Do not take care about recovery NVM checksum")
---
 drivers/net/ethernet/intel/e1000e/ich8lan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/e1000e/ich8lan.c +2 -2
index e298da712758..d60e2016d03c 100644
@@ -4140,9 +4140,9 @@ static s32 e1000_validate_nvm_checksum_ich8lan(struct e1000_hw *hw)
 		return ret_val;
 
 	if (!(data & valid_csum_mask)) {
-		e_dbg("NVM Checksum Invalid\n");
+		e_dbg("NVM Checksum valid bit not set\n");
 
-		if (hw->mac.type < e1000_pch_cnp) {
+		if (hw->mac.type < e1000_pch_tgp) {
 			data |= valid_csum_mask;
 			ret_val = e1000_write_nvm(hw, word, 1, &data);
 			if (ret_val)
Signature · 1 line
2.30.2
#1 lore raw

PATCH 1/1 e1000e: Correct NVM checksum verification flow

Quoted 11 lines · Sasha Neftin

Update MAC type check e1000_pch_tgp because for e1000_pch_cnp, NVM checksum update is still possible.
Emit a more detailed warning message.

Bugzilla:https://bugzilla.opensuse.org/show_bug.cgi?id=1191663

Fixes 4051f68318ca ("e1000e: Do not take care about recovery NVM checksum")
---
  drivers/net/ethernet/intel/e1000e/ich8lan.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20220223/1f83995c/attachment-0001.html>