]> asedeno.scripts.mit.edu Git - linux.git/commit
ice: Align ice_reset_req enum values to hardware reset values
authorBrett Creeley <brett.creeley@intel.com>
Thu, 20 Sep 2018 00:23:18 +0000 (17:23 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 2 Oct 2018 14:18:20 +0000 (07:18 -0700)
commitca4929b6df7c729c375c486c0ca53decb0eae9f5
tree03c30f1b04cc85c9a876381c57e3674e89f1ab75
parent492af0ab4f57136d19f0fa3a9c636f12ae70853c
ice: Align ice_reset_req enum values to hardware reset values

Currently the ice_reset_req enum values have to be translated into
a different set of values that the hardware understands for the same
reset types. Avoid this translation by aligning ice_reset_req enum
values to the ones that the hardware understands.

Also add and else if block to check for ICE_RESET_EMPR and put a dev_dbg
message in the else case.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_main.c
drivers/net/ethernet/intel/ice/ice_type.h