Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90867
b: refs/heads/master
c: 8d7c294
h: refs/heads/master
i:
  90865: f6a1410
  90863: 3716ca6
v: v3
  • Loading branch information
Jeff Kirsher authored and Jeff Garzik committed Apr 17, 2008
1 parent 226d8e2 commit 997b965
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2723b019214c8787ee2fb54dacacfd112d2e5bf4
refs/heads/master: 8d7c294cae6fd1474d88267810d1965f60a903af
4 changes: 4 additions & 0 deletions trunk/drivers/net/e1000e/82571.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ static s32 e1000_init_nvm_params_82571(struct e1000_hw *hw)
* for setting word_size.
*/
size += NVM_WORD_SIZE_BASE_SHIFT;

/* EEPROM access above 16k is unsupported */
if (size > 14)
size = 14;
nvm->word_size = 1 << size;
break;
}
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/net/e1000e/es2lan.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ static s32 e1000_init_nvm_params_80003es2lan(struct e1000_hw *hw)
* for setting word_size.
*/
size += NVM_WORD_SIZE_BASE_SHIFT;

/* EEPROM access above 16k is unsupported */
if (size > 14)
size = 14;
nvm->word_size = 1 << size;

return 0;
Expand Down

0 comments on commit 997b965

Please sign in to comment.