]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3de0cf5c3441529ff0b0b0e7062cefc00032f5dc
treeae83c4ae059d06f05e7d1ab9300c761d3bdf2b43
parent29274ea8ca608f170e928faec0a3a70789b7e30d
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