Skip to content

Commit e22c887

Browse files
committed
Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue
Tony Nguyen says: ==================== 100GbE Intel Wired LAN Driver Updates 2022-07-15 This series contains updates to ice driver only. Ani updates feature restriction for devices that don't support external time stamping. Zhuo Chen removes unnecessary call to pci_aer_clear_nonfatal_status(). * '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue: ice: Remove pci_aer_clear_nonfatal_status() call ice: Add EXTTS feature to the feature bitmap ==================== Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents 6ee49d6 + ca415ea commit e22c887

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

drivers/net/ethernet/intel/ice/ice.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@
181181

182182
enum ice_feature {
183183
ICE_F_DSCP,
184+
ICE_F_PTP_EXTTS,
184185
ICE_F_SMA_CTRL,
185186
ICE_F_GNSS,
186187
ICE_F_MAX

drivers/net/ethernet/intel/ice/ice_lib.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4182,6 +4182,7 @@ void ice_init_feature_support(struct ice_pf *pf)
41824182
case ICE_DEV_ID_E810C_QSFP:
41834183
case ICE_DEV_ID_E810C_SFP:
41844184
ice_set_feature_support(pf, ICE_F_DSCP);
4185+
ice_set_feature_support(pf, ICE_F_PTP_EXTTS);
41854186
if (ice_is_e810t(&pf->hw)) {
41864187
ice_set_feature_support(pf, ICE_F_SMA_CTRL);
41874188
if (ice_gnss_is_gps_present(&pf->hw))

drivers/net/ethernet/intel/ice/ice_main.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5313,12 +5313,6 @@ static pci_ers_result_t ice_pci_err_slot_reset(struct pci_dev *pdev)
53135313
result = PCI_ERS_RESULT_DISCONNECT;
53145314
}
53155315

5316-
err = pci_aer_clear_nonfatal_status(pdev);
5317-
if (err)
5318-
dev_dbg(&pdev->dev, "pci_aer_clear_nonfatal_status() failed, error %d\n",
5319-
err);
5320-
/* non-fatal, continue */
5321-
53225316
return result;
53235317
}
53245318

drivers/net/ethernet/intel/ice/ice_ptp.c

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,21 +1900,29 @@ ice_ptp_setup_pins_e810t(struct ice_pf *pf, struct ptp_clock_info *info)
19001900
}
19011901

19021902
info->n_per_out = N_PER_OUT_E810T;
1903-
info->n_ext_ts = N_EXT_TS_E810;
1904-
info->n_pins = NUM_PTP_PINS_E810T;
1905-
info->verify = ice_verify_pin_e810t;
1903+
1904+
if (ice_is_feature_supported(pf, ICE_F_PTP_EXTTS)) {
1905+
info->n_ext_ts = N_EXT_TS_E810;
1906+
info->n_pins = NUM_PTP_PINS_E810T;
1907+
info->verify = ice_verify_pin_e810t;
1908+
}
19061909

19071910
/* Complete setup of the SMA pins */
19081911
ice_ptp_setup_sma_pins_e810t(pf, info);
19091912
}
19101913

19111914
/**
19121915
* ice_ptp_setup_pins_e810 - Setup PTP pins in sysfs
1916+
* @pf: pointer to the PF instance
19131917
* @info: PTP clock capabilities
19141918
*/
1915-
static void ice_ptp_setup_pins_e810(struct ptp_clock_info *info)
1919+
static void ice_ptp_setup_pins_e810(struct ice_pf *pf, struct ptp_clock_info *info)
19161920
{
19171921
info->n_per_out = N_PER_OUT_E810;
1922+
1923+
if (!ice_is_feature_supported(pf, ICE_F_PTP_EXTTS))
1924+
return;
1925+
19181926
info->n_ext_ts = N_EXT_TS_E810;
19191927
}
19201928

@@ -1956,7 +1964,7 @@ ice_ptp_set_funcs_e810(struct ice_pf *pf, struct ptp_clock_info *info)
19561964
if (ice_is_e810t(&pf->hw))
19571965
ice_ptp_setup_pins_e810t(pf, info);
19581966
else
1959-
ice_ptp_setup_pins_e810(info);
1967+
ice_ptp_setup_pins_e810(pf, info);
19601968
}
19611969

19621970
/**

0 commit comments

Comments
 (0)