]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6642da6e70ac4f79d9071bbd25fe2ca15d9e0e88
tree431a35108ff4a1272ff789ad380f221d644ef1d1
parent66f61b3a1746467e1212733b5181fb3915aec122
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