File tree 2 files changed +2
-5
lines changed
drivers/net/ethernet/intel/igc
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -5142,6 +5142,8 @@ static int igc_probe(struct pci_dev *pdev,
5142
5142
device_set_wakeup_enable (& adapter -> pdev -> dev ,
5143
5143
adapter -> flags & IGC_FLAG_WOL_SUPPORTED );
5144
5144
5145
+ igc_ptp_init (adapter );
5146
+
5145
5147
/* reset the hardware with the new settings */
5146
5148
igc_reset (adapter );
5147
5149
@@ -5158,9 +5160,6 @@ static int igc_probe(struct pci_dev *pdev,
5158
5160
/* carrier off reporting is important to ethtool even BEFORE open */
5159
5161
netif_carrier_off (netdev );
5160
5162
5161
- /* do hw tstamp init after resetting */
5162
- igc_ptp_init (adapter );
5163
-
5164
5163
/* Check if Media Autosense is enabled */
5165
5164
adapter -> ei = * ei ;
5166
5165
Original file line number Diff line number Diff line change @@ -496,8 +496,6 @@ void igc_ptp_init(struct igc_adapter *adapter)
496
496
adapter -> tstamp_config .rx_filter = HWTSTAMP_FILTER_NONE ;
497
497
adapter -> tstamp_config .tx_type = HWTSTAMP_TX_OFF ;
498
498
499
- igc_ptp_reset (adapter );
500
-
501
499
adapter -> ptp_clock = ptp_clock_register (& adapter -> ptp_caps ,
502
500
& adapter -> pdev -> dev );
503
501
if (IS_ERR (adapter -> ptp_clock )) {
You can’t perform that action at this time.
0 commit comments