igb: Acquire, release semaphore for writing each EEPROM page
authorAkeem G. Abodunrin <akeem.g.abodunrin@intel.com>
Sat, 3 Nov 2012 03:08:41 +0000 (03:08 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 1 Dec 2012 10:49:17 +0000 (02:49 -0800)
commit23e0f1488f193d53d282404c1ab50112cb237341
tree3fcb0162b69ead4ad4e470136f641ea09708facc
parent1720ee3e4054eff175743820ceba16ecfe97943a
igb: Acquire, release semaphore for writing each EEPROM page

This patch allows software acquires and releases NVM resource for
writing each EEPROM page, instead of holding semaphore for the whole
data block which is too long and could trigger write fails on
unpredictable addresses.

Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/e1000_nvm.c