ixgbe: clear semaphore bits on timeouts
authorEmil Tantilov <emil.s.tantilov@intel.com>
Tue, 23 Jul 2013 01:57:03 +0000 (01:57 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 31 Jul 2013 08:16:38 +0000 (01:16 -0700)
commit674c18b2ed65f9db04e5c2e9c9e4af8fa2af0f1b
tree431a35108ff4a1272ff789ad380f221d644ef1d1
parent9c432adaa803c1a6f1065f907caab13248c844df
ixgbe: clear semaphore bits on timeouts

This patch changes the error code path in ixgbe_acquire_swfw_sync() to deal
with cases where acquiring SW semaphore times out.

In cases where the SW/FW semaphore bits were set (i.e. due to a crash) the
driver will hang on load. With this patch the driver will clear
the stuck bits if the semaphore was not acquired in the allotted time.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c