igb: Fix EEPROM writes via ethtool on i210
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Wed, 24 Oct 2012 03:56:21 +0000 (03:56 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 1 Nov 2012 09:54:42 +0000 (02:54 -0700)
This patch fixes a problem where the driver would crash when trying to
write a word to the EEPROM on i210 devices.

Reported-by: Ekman Tsang <Ekman.Tsang@riverbed.com>
Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/e1000_82575.c

index 4313bcca876ee3ef4b75db1164b789d246b5262f..deb05970b9f16a3ed6913d4d15aaa252f80daad0 100644 (file)
@@ -319,6 +319,7 @@ static s32 igb_get_invariants_82575(struct e1000_hw *hw)
                nvm->ops.acquire = igb_acquire_nvm_i210;
                nvm->ops.release = igb_release_nvm_i210;
                nvm->ops.read    = igb_read_nvm_srrd_i210;
+               nvm->ops.write   = igb_write_nvm_srwr_i210;
                nvm->ops.valid_led_default = igb_valid_led_default_i210;
                break;
        case e1000_i211: