i40e: Fix the polling mechanism of GLGEN_RSTAT.DEVSTATE
authorPaweł Jabłoński <pawel.jablonski@intel.com>
Mon, 19 Mar 2018 16:28:04 +0000 (09:28 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 19 Mar 2018 16:57:52 +0000 (09:57 -0700)
commit12d80bca0bb7178bc85a32e19795ff249a5903ad
treee703d38c8451ce06aa5e97db1398e029e311e9ed
parent6b9a9c26ef2f78911ee848446f845b77c45032f4
i40e: Fix the polling mechanism of GLGEN_RSTAT.DEVSTATE

This fixes the polling mechanism of GLGEN_RSTAT.DEVSTATE in the
PF Reset path when Global Reset is in progress. While the driver
is polling for the end of the PF Reset and the Global Reset is
triggered, abandon the PF Reset path and prepare for the
upcoming Global Reset.

Signed-off-by: Paweł Jabłoński <pawel.jablonski@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_common.c