ice: check netlist before enabling ICE_F_GNSS
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 17 Aug 2023 00:00:58 +0000 (17:00 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 18 Sep 2023 18:27:33 +0000 (11:27 -0700)
commit89776a6a702e9b7bf9ae1691621f9699b2c18cc1
tree46199bc65076c6db5ea0b5020a3c9eea375e8f46
parent42d40bb21e332151da6fb689bf7d4af8195866ed
ice: check netlist before enabling ICE_F_GNSS

Similar to the change made for ICE_F_SMA_CTRL, check the netlist before
enabling support for ICE_F_GNSS. This ensures that the driver only enables
the GNSS feature on devices which actually have the feature enabled in the
firmware device configuration.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Sunitha Mekala <sunithax.d.mekala@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_common.c
drivers/net/ethernet/intel/ice/ice_common.h
drivers/net/ethernet/intel/ice/ice_gnss.c