ixgbe: fix semaphores in eeprom routines for x540
authorEmil Tantilov <emil.s.tantilov@intel.com>
Thu, 24 Mar 2011 00:57:50 +0000 (00:57 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 14 Apr 2011 02:23:38 +0000 (19:23 -0700)
commiteb9c3e3ea2981e56c71e8f5477c51783856090b1
treeff6ddad23c34e96de2083c46598f7aab0eb62425
parent032b4325b61b03f87f0346d0e92e39f785e24105
ixgbe: fix semaphores in eeprom routines for x540

HW can upload EEPROM content from flash while
in a middle of checksum calculation. Take NVM ownership for the whole
process of checksum update.

Call ixgbe_read_eerd_generic() and ixgbe_write_eewr_generic() directly to
avoid double take of semaphores which leads to long loading times.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ixgbe/ixgbe_common.c
drivers/net/ixgbe/ixgbe_common.h
drivers/net/ixgbe/ixgbe_x540.c