diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2008-11-21 20:00:22 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-21 20:00:22 -0500 |
commit | 8452759060ad46fc071a7d5bbf1647df5ea2ceab (patch) | |
tree | d6dc357a82e32e1c021773dfe9163e053fbdd711 /drivers/net/e1000e/netdev.c | |
parent | 0285c8dcaeaa73ddadc4f38383e5bbc03c394a29 (diff) |
e1000e: store EEPROM version number to prevent unnecessary NVM reads
Rather than reading the NVM to get the EEPROM version number everytime the
ethool get_drvinfo function is called, read it once during probe and save
it for future reference.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/e1000e/netdev.c')
-rw-r--r-- | drivers/net/e1000e/netdev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index f10252b055d..b3f0b479701 100644 --- a/drivers/net/e1000e/netdev.c +++ b/drivers/net/e1000e/netdev.c | |||
@@ -5025,6 +5025,9 @@ static int __devinit e1000_probe(struct pci_dev *pdev, | |||
5025 | adapter->wol = adapter->eeprom_wol; | 5025 | adapter->wol = adapter->eeprom_wol; |
5026 | device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); | 5026 | device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); |
5027 | 5027 | ||
5028 | /* save off EEPROM version number */ | ||
5029 | e1000_read_nvm(&adapter->hw, 5, 1, &adapter->eeprom_vers); | ||
5030 | |||
5028 | /* reset the hardware with the new settings */ | 5031 | /* reset the hardware with the new settings */ |
5029 | e1000e_reset(adapter); | 5032 | e1000e_reset(adapter); |
5030 | 5033 | ||