sfc: Allow resets to be upgraded; use atomic ops for safety
[firefly-linux-kernel-4.4.55.git] / drivers / net / sfc / enum.h
index 384cfe3b1be133466ab7c77ca1522717b3f116a8..d725a8fbe1a65750096ade0ec9d844e62ee29b96 100644 (file)
@@ -134,6 +134,8 @@ enum efx_loopback_mode {
  * other valuesspecify reasons, which efx_schedule_reset() will choose
  * a method for.
  *
+ * Reset methods are numbered in order of increasing scope.
+ *
  * @RESET_TYPE_INVISIBLE: don't reset the PHYs or interrupts
  * @RESET_TYPE_ALL: reset everything but PCI core blocks
  * @RESET_TYPE_WORLD: reset everything, save & restore PCI config
@@ -147,7 +149,6 @@ enum efx_loopback_mode {
  * @RESET_TYPE_MC_FAILURE: MC reboot/assertion
  */
 enum reset_type {
-       RESET_TYPE_NONE = -1,
        RESET_TYPE_INVISIBLE = 0,
        RESET_TYPE_ALL = 1,
        RESET_TYPE_WORLD = 2,