i40e: fix up NVM update sm error handling
authorShannon Nelson <shannon.nelson@intel.com>
Thu, 13 Nov 2014 08:23:20 +0000 (08:23 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 9 Dec 2014 20:57:04 +0000 (12:57 -0800)
commit0fdd052c8c101afb6fa9dac753e5a6fa4b265628
tree049dcf7c8dd5f1fd57cf8d81e445f9069d1186e8
parentc509c1decbba1ac1f94fd683a879bc19cffb4b24
i40e: fix up NVM update sm error handling

The state transitions after an error were not managed well, so
these changes get us back to the INIT state or don't transition
out of the INIT state after most errors.

Change-ID: I90aa0e4e348dc4f58cbcdce9c5d4b7fd35981c6c
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Acked-by: Michal Kosiarz <michal.kosiarz@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