]> 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)
commit79412bf38ce9d18475dbb0e6464cbbf3786f02f4
tree862409d4c2db982a14217ceb79f21183ab186ad1
parent41c8596e166323858a47b65c754f0fe1d96dc43e
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