ice: Add additional flags to ice_nvm_write_activate
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 11 Aug 2022 13:05:34 +0000 (15:05 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 24 Aug 2022 15:45:54 +0000 (08:45 -0700)
commitda02ee9c220bcc8abbb97473dbf82aad28de80cc
treeae83c4ae059d06f05e7d1ab9300c761d3bdf2b43
parent781f15eac0d2035828558d7e5ab2779b151b2362
ice: Add additional flags to ice_nvm_write_activate

The ice_nvm_write_activate function is used to issue AdminQ command
0x0707 which sends a request to firmware to activate a flash bank. For
basic operations, this command takes an 8bit flag value which defines
the flags to control the activation process. There are some additional
flags that are stored in a second 8bit flag field.

We can simplify the interface by using a u16 cmd_flags variable. Split
this over the two bytes of flag storage in the structure.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Anatolii Gerasymenko <anatolii.gerasymenko@intel.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
drivers/net/ethernet/intel/ice/ice_nvm.c
drivers/net/ethernet/intel/ice/ice_nvm.h