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)
commit2c47e351f61b66f2e870bfd634e471a6ab1af920
tree862409d4c2db982a14217ceb79f21183ab186ad1
parent33c62b34e5a3d57eb8a487140ca46631fc76e10c
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