]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Clear SWFW_SYNC register during init
authorEmil Tantilov <emil.s.tantilov@intel.com>
Wed, 5 Jul 2017 22:57:30 +0000 (15:57 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 9 Oct 2017 16:28:23 +0000 (09:28 -0700)
commit900c78633350f7be2d17689fdf1aa4b916974b16
tree42e026e4e9c291b2374788fd19be82fee5a9d672
parent4bf2fca7aa088995871fab933dcdc72cd50556ca
ixgbe: Clear SWFW_SYNC register during init

Added clearing of SW resource bits in the SW/FW synchronization
register to ixgbe_init_swfw_sync_X540().

Updated ixgbe_acquire_swfw_sync_X540 SW Manageability host interface
resource bit error case to match the error handling of the other SW
resource bits. Which is to release the SW resource bits if SW times
out while attempting to acquire the resource.

This allows the driver to load in cases where the semaphore bits
could be stuck after a reset or a crash.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c