]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: catch NVM write semaphore timeout and retry
authorShannon Nelson <shannon.nelson@intel.com>
Sat, 21 Feb 2015 06:45:10 +0000 (06:45 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 26 Feb 2015 12:54:03 +0000 (04:54 -0800)
commitb25995d610d5e270fe54f55a690d17e87aeb4ec6
tree862409d4c2db982a14217ceb79f21183ab186ad1
parentac1981a0b1d29d84da6cbd832028283232900652
i40e: catch NVM write semaphore timeout and retry

In some circumstances, a multi-write transaction takes longer than the
default 3 minute timeout on the write semaphore.  If the write failed with
an EBUSY status, this is likely the problem, so here we try to reacquire
the semaphore then retry the write.  We only do one retry, then give up.

Change-ID: I1c8be60688acc2f39573839579baf601207c4a36
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_nvm.c