diff options
| author | Karol Kolacinski <[email protected]> | 2022-03-01 18:38:03 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-03-03 14:11:00 +0000 |
| commit | 43113ff73453c231af2c8e700cb4ff8bca97cff6 (patch) | |
| tree | 37ac50a2dc8480983c793f506e343f8903ddad8b /drivers/net/ethernet/intel/ice/ice_lib.c | |
| parent | Merge branch 'nfc-llcp-cleanups' (diff) | |
| download | kernel-43113ff73453c231af2c8e700cb4ff8bca97cff6.tar.gz kernel-43113ff73453c231af2c8e700cb4ff8bca97cff6.zip | |
ice: add TTY for GNSS module for E810T device
Add a new ice_gnss.c file for holding the basic GNSS module functions.
If the device supports GNSS module, call the new ice_gnss_init and
ice_gnss_release functions where appropriate.
Implement basic functionality for reading the data from GNSS module
using TTY device.
Add I2C read AQ command. It is now required for controlling the external
physical connectors via external I2C port expander on E810-T adapters.
Future changes will introduce write functionality.
Signed-off-by: Karol Kolacinski <[email protected]>
Signed-off-by: Sudhansu Sekhar Mishra <[email protected]>
Tested-by: Sunitha Mekala <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_lib.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c index 2d15bb73a074..662493d1002b 100644 --- a/drivers/net/ethernet/intel/ice/ice_lib.c +++ b/drivers/net/ethernet/intel/ice/ice_lib.c @@ -4094,8 +4094,11 @@ void ice_init_feature_support(struct ice_pf *pf) case ICE_DEV_ID_E810C_QSFP: case ICE_DEV_ID_E810C_SFP: ice_set_feature_support(pf, ICE_F_DSCP); - if (ice_is_e810t(&pf->hw)) + if (ice_is_e810t(&pf->hw)) { ice_set_feature_support(pf, ICE_F_SMA_CTRL); + if (ice_gnss_is_gps_present(&pf->hw)) + ice_set_feature_support(pf, ICE_F_GNSS); + } break; default: break; |
