]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: Acquire/release semaphore when writing each EEPROM page
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 5 Dec 2012 06:25:47 +0000 (06:25 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 16 Jan 2013 05:31:41 +0000 (21:31 -0800)
commite6102706b7d771e1d4323183495d3d9eadf064c9
treea29b0299e539fb7b6eb11d456a3b500ffe122524
parentbba4667066ab11687f31aba1399742d0c1fa0733
e1000e: Acquire/release semaphore when writing each EEPROM page

When data blocks are written to the EEPROM, the HW/SW/FW semaphore must be
held for the duration.  With large data blocks on 80003es2lan, 82571 and
82572, this can take too long and cause the firmware to take ownership of
the semaphore and consequently ownership of writes to the EEPROM.
Instead, acquire and release the semaphore for each page of the block
written.

Signed-off-by: Bruce Allan <bruce.w.allan@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/e1000e/nvm.c