i40e: poll on NVM semaphore only if not other error
authorShannon Nelson <shannon.nelson@intel.com>
Thu, 13 Nov 2014 08:23:21 +0000 (08:23 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 9 Dec 2014 20:57:04 +0000 (12:57 -0800)
commita3f0b381ee4a84b633ea60ffa8e01f84e9528c75
treeb7ecb0315f2d7ecd7dc86f8d17ef714cdec8d4e0
parent0fdd052c8c101afb6fa9dac753e5a6fa4b265628
i40e: poll on NVM semaphore only if not other error

Only poll on the NVM semaphore if there's time left on a previous
reservation.  Also, add a little more info to debug messages.

Change-ID: I2439bf870b95a28b810dcb5cca1c06440463cf8a
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Acked-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_nvm.c