[Intel-wired-lan] [PATCH net-next v1 2/3] ice: Add additional flags to ice_nvm_write_activate

G, GurucharanX gurucharanx.g at intel.com
Tue Aug 16 11:04:15 UTC 2022



> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Anatolii Gerasymenko
> Sent: Thursday, August 11, 2022 6:36 PM
> To: intel-wired-lan at lists.osuosl.org
> Cc: Gerasymenko, Anatolii <anatolii.gerasymenko at intel.com>
> Subject: [Intel-wired-lan] [PATCH net-next v1 2/3] ice: Add additional flags to
> ice_nvm_write_activate
> 
> From: Jacob Keller <jacob.e.keller at intel.com>
> 
> 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 at intel.com>
> Signed-off-by: Anatolii Gerasymenko <anatolii.gerasymenko at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_adminq_cmd.h |  6 ++++++
>  drivers/net/ethernet/intel/ice/ice_nvm.c        | 13 +++++++++----
>  drivers/net/ethernet/intel/ice/ice_nvm.h        |  2 +-
>  3 files changed, 16 insertions(+), 5 deletions(-)
> 

Tested-by: Gurucharan <gurucharanx.g at intel.com> (A Contingent worker at Intel)


More information about the Intel-wired-lan mailing list