106c16d89SJacob Keller /* SPDX-License-Identifier: GPL-2.0 */
206c16d89SJacob Keller /* Copyright (C) 2021, Intel Corporation. */
306c16d89SJacob Keller
406c16d89SJacob Keller #ifndef _ICE_PTP_H_
506c16d89SJacob Keller #define _ICE_PTP_H_
606c16d89SJacob Keller
706c16d89SJacob Keller #include <linux/ptp_clock_kernel.h>
877a78115SJacob Keller #include <linux/kthread.h>
906c16d89SJacob Keller
1006c16d89SJacob Keller #include "ice_ptp_hw.h"
1106c16d89SJacob Keller
12325b2064SMaciej Machnikowski enum ice_ptp_pin_e810 {
13172db5f9SMaciej Machnikowski GPIO_20 = 0,
14172db5f9SMaciej Machnikowski GPIO_21,
15172db5f9SMaciej Machnikowski GPIO_22,
16172db5f9SMaciej Machnikowski GPIO_23,
17325b2064SMaciej Machnikowski NUM_PTP_PIN_E810
18325b2064SMaciej Machnikowski };
19325b2064SMaciej Machnikowski
20325b2064SMaciej Machnikowski enum ice_ptp_pin_e810t {
21325b2064SMaciej Machnikowski GNSS = 0,
22325b2064SMaciej Machnikowski SMA1,
23325b2064SMaciej Machnikowski UFL1,
24325b2064SMaciej Machnikowski SMA2,
25325b2064SMaciej Machnikowski UFL2,
26325b2064SMaciej Machnikowski NUM_PTP_PINS_E810T
27172db5f9SMaciej Machnikowski };
28172db5f9SMaciej Machnikowski
29172db5f9SMaciej Machnikowski struct ice_perout_channel {
30172db5f9SMaciej Machnikowski bool ena;
31172db5f9SMaciej Machnikowski u32 gpio_pin;
32172db5f9SMaciej Machnikowski u64 period;
33172db5f9SMaciej Machnikowski u64 start_time;
34172db5f9SMaciej Machnikowski };
35172db5f9SMaciej Machnikowski
36ea9b847cSJacob Keller /* The ice hardware captures Tx hardware timestamps in the PHY. The timestamp
37ea9b847cSJacob Keller * is stored in a buffer of registers. Depending on the specific hardware,
38ea9b847cSJacob Keller * this buffer might be shared across multiple PHY ports.
39ea9b847cSJacob Keller *
40ea9b847cSJacob Keller * On transmit of a packet to be timestamped, software is responsible for
41ea9b847cSJacob Keller * selecting an open index. Hardware makes no attempt to lock or prevent
42ea9b847cSJacob Keller * re-use of an index for multiple packets.
43ea9b847cSJacob Keller *
44ea9b847cSJacob Keller * To handle this, timestamp indexes must be tracked by software to ensure
45ea9b847cSJacob Keller * that an index is not re-used for multiple transmitted packets. The
46ea9b847cSJacob Keller * structures and functions declared in this file track the available Tx
47ea9b847cSJacob Keller * register indexes, as well as provide storage for the SKB pointers.
48ea9b847cSJacob Keller *
49ea9b847cSJacob Keller * To allow multiple ports to access the shared register block independently,
50ea9b847cSJacob Keller * the blocks are split up so that indexes are assigned to each port based on
51ea9b847cSJacob Keller * hardware logical port number.
5271a579f0SMichal Michalik *
5371a579f0SMichal Michalik * The timestamp blocks are handled differently for E810- and E822-based
5471a579f0SMichal Michalik * devices. In E810 devices, each port has its own block of timestamps, while in
5571a579f0SMichal Michalik * E822 there is a need to logically break the block of registers into smaller
5671a579f0SMichal Michalik * chunks based on the port number to avoid collisions.
5771a579f0SMichal Michalik *
5871a579f0SMichal Michalik * Example for port 5 in E810:
5971a579f0SMichal Michalik * +--------+--------+--------+--------+--------+--------+--------+--------+
6071a579f0SMichal Michalik * |register|register|register|register|register|register|register|register|
6171a579f0SMichal Michalik * | block | block | block | block | block | block | block | block |
6271a579f0SMichal Michalik * | for | for | for | for | for | for | for | for |
6371a579f0SMichal Michalik * | port 0 | port 1 | port 2 | port 3 | port 4 | port 5 | port 6 | port 7 |
6471a579f0SMichal Michalik * +--------+--------+--------+--------+--------+--------+--------+--------+
6571a579f0SMichal Michalik * ^^
6671a579f0SMichal Michalik * ||
6771a579f0SMichal Michalik * |--- quad offset is always 0
6871a579f0SMichal Michalik * ---- quad number
6971a579f0SMichal Michalik *
7071a579f0SMichal Michalik * Example for port 5 in E822:
7171a579f0SMichal Michalik * +-----------------------------+-----------------------------+
7271a579f0SMichal Michalik * | register block for quad 0 | register block for quad 1 |
7371a579f0SMichal Michalik * |+------+------+------+------+|+------+------+------+------+|
7471a579f0SMichal Michalik * ||port 0|port 1|port 2|port 3|||port 0|port 1|port 2|port 3||
7571a579f0SMichal Michalik * |+------+------+------+------+|+------+------+------+------+|
7671a579f0SMichal Michalik * +-----------------------------+-------^---------------------+
7771a579f0SMichal Michalik * ^ |
7871a579f0SMichal Michalik * | --- quad offset*
7971a579f0SMichal Michalik * ---- quad number
8071a579f0SMichal Michalik *
8171a579f0SMichal Michalik * * PHY port 5 is port 1 in quad 1
8271a579f0SMichal Michalik *
83ea9b847cSJacob Keller */
84ea9b847cSJacob Keller
85ea9b847cSJacob Keller /**
86ea9b847cSJacob Keller * struct ice_tx_tstamp - Tracking for a single Tx timestamp
87ea9b847cSJacob Keller * @skb: pointer to the SKB for this timestamp request
88ea9b847cSJacob Keller * @start: jiffies when the timestamp was first requested
8937e738b6SKarol Kolacinski * @cached_tstamp: last read timestamp
90ea9b847cSJacob Keller *
91ea9b847cSJacob Keller * This structure tracks a single timestamp request. The SKB pointer is
92ea9b847cSJacob Keller * provided when initiating a request. The start time is used to ensure that
93ea9b847cSJacob Keller * we discard old requests that were not fulfilled within a 2 second time
94ea9b847cSJacob Keller * window.
9537e738b6SKarol Kolacinski * Timestamp values in the PHY are read only and do not get cleared except at
9610e4b4a3SJacob Keller * hardware reset or when a new timestamp value is captured.
9710e4b4a3SJacob Keller *
9810e4b4a3SJacob Keller * Some PHY types do not provide a "ready" bitmap indicating which timestamp
9910e4b4a3SJacob Keller * indexes are valid. In these cases, we use a cached_tstamp to keep track of
10010e4b4a3SJacob Keller * the last timestamp we read for a given index. If the current timestamp
10110e4b4a3SJacob Keller * value is the same as the cached value, we assume a new timestamp hasn't
10210e4b4a3SJacob Keller * been captured. This avoids reporting stale timestamps to the stack. This is
10310e4b4a3SJacob Keller * only done if the verify_cached flag is set in ice_ptp_tx structure.
104ea9b847cSJacob Keller */
105ea9b847cSJacob Keller struct ice_tx_tstamp {
106ea9b847cSJacob Keller struct sk_buff *skb;
107ea9b847cSJacob Keller unsigned long start;
10837e738b6SKarol Kolacinski u64 cached_tstamp;
109ea9b847cSJacob Keller };
110ea9b847cSJacob Keller
111ea9b847cSJacob Keller /**
112*ae39eb42SJacob Keller * enum ice_tx_tstamp_work - Status of Tx timestamp work function
113*ae39eb42SJacob Keller * @ICE_TX_TSTAMP_WORK_DONE: Tx timestamp processing is complete
114*ae39eb42SJacob Keller * @ICE_TX_TSTAMP_WORK_PENDING: More Tx timestamps are pending
115*ae39eb42SJacob Keller */
116*ae39eb42SJacob Keller enum ice_tx_tstamp_work {
117*ae39eb42SJacob Keller ICE_TX_TSTAMP_WORK_DONE = 0,
118*ae39eb42SJacob Keller ICE_TX_TSTAMP_WORK_PENDING,
119*ae39eb42SJacob Keller };
120*ae39eb42SJacob Keller
121*ae39eb42SJacob Keller /**
122ea9b847cSJacob Keller * struct ice_ptp_tx - Tracking structure for all Tx timestamp requests on a port
1233ad5c10bSJacob Keller * @lock: lock to prevent concurrent access to fields of this struct
124ea9b847cSJacob Keller * @tstamps: array of len to store outstanding requests
125ea9b847cSJacob Keller * @in_use: bitmap of len to indicate which slots are in use
126d40fd600SJacob Keller * @stale: bitmap of len to indicate slots which have stale timestamps
1276b5cbc8cSSergey Temerkhanov * @block: which memory block (quad or port) the timestamps are captured in
1286b5cbc8cSSergey Temerkhanov * @offset: offset into timestamp block to get the real index
129ea9b847cSJacob Keller * @len: length of the tstamps and in_use fields.
130ea9b847cSJacob Keller * @init: if true, the tracker is initialized;
1313a749623SJacob Keller * @calibrating: if true, the PHY is calibrating the Tx offset. During this
1323a749623SJacob Keller * window, timestamps are temporarily disabled.
13310e4b4a3SJacob Keller * @verify_cached: if true, verify new timestamp differs from last read value
134ea9b847cSJacob Keller */
135ea9b847cSJacob Keller struct ice_ptp_tx {
136ea9b847cSJacob Keller spinlock_t lock; /* lock protecting in_use bitmap */
137ea9b847cSJacob Keller struct ice_tx_tstamp *tstamps;
138ea9b847cSJacob Keller unsigned long *in_use;
139d40fd600SJacob Keller unsigned long *stale;
1406b5cbc8cSSergey Temerkhanov u8 block;
1416b5cbc8cSSergey Temerkhanov u8 offset;
142ea9b847cSJacob Keller u8 len;
14310e4b4a3SJacob Keller u8 init : 1;
14410e4b4a3SJacob Keller u8 calibrating : 1;
14510e4b4a3SJacob Keller u8 verify_cached : 1;
146ea9b847cSJacob Keller };
147ea9b847cSJacob Keller
148ea9b847cSJacob Keller /* Quad and port information for initializing timestamp blocks */
149ea9b847cSJacob Keller #define INDEX_PER_QUAD 64
1506b5cbc8cSSergey Temerkhanov #define INDEX_PER_PORT_E822 16
1516b5cbc8cSSergey Temerkhanov #define INDEX_PER_PORT_E810 64
152ea9b847cSJacob Keller
153ea9b847cSJacob Keller /**
154ea9b847cSJacob Keller * struct ice_ptp_port - data used to initialize an external port for PTP
155ea9b847cSJacob Keller *
1563a749623SJacob Keller * This structure contains data indicating whether a single external port is
1573a749623SJacob Keller * ready for PTP functionality. It is used to track the port initialization
1583a749623SJacob Keller * and determine when the port's PHY offset is valid.
159ea9b847cSJacob Keller *
160ea9b847cSJacob Keller * @tx: Tx timestamp tracking for this port
161a69f1cb6SJacob Keller * @ov_work: delayed work task for tracking when PHY offset is valid
1623a749623SJacob Keller * @ps_lock: mutex used to protect the overall PTP PHY start procedure
1633a749623SJacob Keller * @link_up: indicates whether the link is up
164a69f1cb6SJacob Keller * @tx_fifo_busy_cnt: number of times the Tx FIFO was busy
1653a749623SJacob Keller * @port_num: the port number this structure represents
166ea9b847cSJacob Keller */
167ea9b847cSJacob Keller struct ice_ptp_port {
168ea9b847cSJacob Keller struct ice_ptp_tx tx;
169a69f1cb6SJacob Keller struct kthread_delayed_work ov_work;
1703a749623SJacob Keller struct mutex ps_lock; /* protects overall PTP PHY start procedure */
1713a749623SJacob Keller bool link_up;
172a69f1cb6SJacob Keller u8 tx_fifo_busy_cnt;
1733a749623SJacob Keller u8 port_num;
174ea9b847cSJacob Keller };
175ea9b847cSJacob Keller
176172db5f9SMaciej Machnikowski #define GLTSYN_TGT_H_IDX_MAX 4
177172db5f9SMaciej Machnikowski
17806c16d89SJacob Keller /**
17906c16d89SJacob Keller * struct ice_ptp - data used for integrating with CONFIG_PTP_1588_CLOCK
180ea9b847cSJacob Keller * @port: data for the PHY port initialization procedure
18177a78115SJacob Keller * @work: delayed work function for periodic tasks
18277a78115SJacob Keller * @cached_phc_time: a cached copy of the PHC time for timestamp extension
183cd25507aSJacob Keller * @cached_phc_jiffies: jiffies when cached_phc_time was last updated
184172db5f9SMaciej Machnikowski * @ext_ts_chan: the external timestamp channel in use
185172db5f9SMaciej Machnikowski * @ext_ts_irq: the external timestamp IRQ in use
18677a78115SJacob Keller * @kworker: kwork thread for handling periodic work
187172db5f9SMaciej Machnikowski * @perout_channels: periodic output data
18806c16d89SJacob Keller * @info: structure defining PTP hardware capabilities
18906c16d89SJacob Keller * @clock: pointer to registered PTP clock device
19077a78115SJacob Keller * @tstamp_config: hardware timestamping configuration
19148096710SKarol Kolacinski * @reset_time: kernel time after clock stop on reset
192f020481bSJacob Keller * @tx_hwtstamp_skipped: number of Tx time stamp requests skipped
193f020481bSJacob Keller * @tx_hwtstamp_timeouts: number of Tx skbs discarded with no time stamp
194f020481bSJacob Keller * @tx_hwtstamp_flushed: number of Tx skbs flushed due to interface closed
195cd25507aSJacob Keller * @tx_hwtstamp_discarded: number of Tx skbs discarded due to cached PHC time
196cd25507aSJacob Keller * being too old to correctly extend timestamp
197cd25507aSJacob Keller * @late_cached_phc_updates: number of times cached PHC update is late
19806c16d89SJacob Keller */
19906c16d89SJacob Keller struct ice_ptp {
200ea9b847cSJacob Keller struct ice_ptp_port port;
20177a78115SJacob Keller struct kthread_delayed_work work;
20277a78115SJacob Keller u64 cached_phc_time;
203cd25507aSJacob Keller unsigned long cached_phc_jiffies;
204172db5f9SMaciej Machnikowski u8 ext_ts_chan;
205172db5f9SMaciej Machnikowski u8 ext_ts_irq;
20677a78115SJacob Keller struct kthread_worker *kworker;
207172db5f9SMaciej Machnikowski struct ice_perout_channel perout_channels[GLTSYN_TGT_H_IDX_MAX];
20806c16d89SJacob Keller struct ptp_clock_info info;
20906c16d89SJacob Keller struct ptp_clock *clock;
21077a78115SJacob Keller struct hwtstamp_config tstamp_config;
21148096710SKarol Kolacinski u64 reset_time;
212f020481bSJacob Keller u32 tx_hwtstamp_skipped;
213f020481bSJacob Keller u32 tx_hwtstamp_timeouts;
214f020481bSJacob Keller u32 tx_hwtstamp_flushed;
215cd25507aSJacob Keller u32 tx_hwtstamp_discarded;
216cd25507aSJacob Keller u32 late_cached_phc_updates;
21706c16d89SJacob Keller };
21806c16d89SJacob Keller
219ea9b847cSJacob Keller #define __ptp_port_to_ptp(p) \
220ea9b847cSJacob Keller container_of((p), struct ice_ptp, port)
221ea9b847cSJacob Keller #define ptp_port_to_pf(p) \
222ea9b847cSJacob Keller container_of(__ptp_port_to_ptp((p)), struct ice_pf, ptp)
223ea9b847cSJacob Keller
22406c16d89SJacob Keller #define __ptp_info_to_ptp(i) \
22506c16d89SJacob Keller container_of((i), struct ice_ptp, info)
22606c16d89SJacob Keller #define ptp_info_to_pf(i) \
22706c16d89SJacob Keller container_of(__ptp_info_to_ptp((i)), struct ice_pf, ptp)
22806c16d89SJacob Keller
2293a749623SJacob Keller #define PFTSYN_SEM_BYTES 4
23006c16d89SJacob Keller #define PTP_SHARED_CLK_IDX_VALID BIT(31)
2313a749623SJacob Keller #define TS_CMD_MASK 0xF
2323a749623SJacob Keller #define SYNC_EXEC_CMD 0x3
23377a78115SJacob Keller #define ICE_PTP_TS_VALID BIT(0)
23406c16d89SJacob Keller
2353a749623SJacob Keller #define FIFO_EMPTY BIT(2)
2363a749623SJacob Keller #define FIFO_OK 0xFF
2373a749623SJacob Keller #define ICE_PTP_FIFO_NUM_CHECKS 5
238172db5f9SMaciej Machnikowski /* Per-channel register definitions */
239172db5f9SMaciej Machnikowski #define GLTSYN_AUX_OUT(_chan, _idx) (GLTSYN_AUX_OUT_0(_idx) + ((_chan) * 8))
240172db5f9SMaciej Machnikowski #define GLTSYN_AUX_IN(_chan, _idx) (GLTSYN_AUX_IN_0(_idx) + ((_chan) * 8))
241172db5f9SMaciej Machnikowski #define GLTSYN_CLKO(_chan, _idx) (GLTSYN_CLKO_0(_idx) + ((_chan) * 8))
242172db5f9SMaciej Machnikowski #define GLTSYN_TGT_L(_chan, _idx) (GLTSYN_TGT_L_0(_idx) + ((_chan) * 16))
243172db5f9SMaciej Machnikowski #define GLTSYN_TGT_H(_chan, _idx) (GLTSYN_TGT_H_0(_idx) + ((_chan) * 16))
244172db5f9SMaciej Machnikowski #define GLTSYN_EVNT_L(_chan, _idx) (GLTSYN_EVNT_L_0(_idx) + ((_chan) * 16))
245172db5f9SMaciej Machnikowski #define GLTSYN_EVNT_H(_chan, _idx) (GLTSYN_EVNT_H_0(_idx) + ((_chan) * 16))
246172db5f9SMaciej Machnikowski #define GLTSYN_EVNT_H_IDX_MAX 3
247172db5f9SMaciej Machnikowski
248172db5f9SMaciej Machnikowski /* Pin definitions for PTP PPS out */
249172db5f9SMaciej Machnikowski #define PPS_CLK_GEN_CHAN 3
250172db5f9SMaciej Machnikowski #define PPS_CLK_SRC_CHAN 2
251172db5f9SMaciej Machnikowski #define PPS_PIN_INDEX 5
252172db5f9SMaciej Machnikowski #define TIME_SYNC_PIN_INDEX 4
253325b2064SMaciej Machnikowski #define N_EXT_TS_E810 3
254325b2064SMaciej Machnikowski #define N_PER_OUT_E810 4
255325b2064SMaciej Machnikowski #define N_PER_OUT_E810T 3
25643c4958aSArkadiusz Kubalewski #define N_PER_OUT_NO_SMA_E810T 2
25743c4958aSArkadiusz Kubalewski #define N_EXT_TS_NO_SMA_E810T 2
2583a749623SJacob Keller #define ETH_GLTSYN_ENA(_i) (0x03000348 + ((_i) * 4))
259172db5f9SMaciej Machnikowski
26006c16d89SJacob Keller #if IS_ENABLED(CONFIG_PTP_1588_CLOCK)
26106c16d89SJacob Keller struct ice_pf;
26277a78115SJacob Keller int ice_ptp_set_ts_config(struct ice_pf *pf, struct ifreq *ifr);
26377a78115SJacob Keller int ice_ptp_get_ts_config(struct ice_pf *pf, struct ifreq *ifr);
26448096710SKarol Kolacinski void ice_ptp_cfg_timestamp(struct ice_pf *pf, bool ena);
26567569a7fSJacob Keller int ice_get_ptp_clock_index(struct ice_pf *pf);
266ea9b847cSJacob Keller
2676e8b2c88SKarol Kolacinski void ice_ptp_extts_event(struct ice_pf *pf);
268ea9b847cSJacob Keller s8 ice_ptp_request_ts(struct ice_ptp_tx *tx, struct sk_buff *skb);
269*ae39eb42SJacob Keller enum ice_tx_tstamp_work ice_ptp_process_ts(struct ice_pf *pf);
270ea9b847cSJacob Keller
27177a78115SJacob Keller void
272e72bba21SMaciej Fijalkowski ice_ptp_rx_hwtstamp(struct ice_rx_ring *rx_ring,
27377a78115SJacob Keller union ice_32b_rx_flex_desc *rx_desc, struct sk_buff *skb);
27448096710SKarol Kolacinski void ice_ptp_reset(struct ice_pf *pf);
27548096710SKarol Kolacinski void ice_ptp_prepare_for_reset(struct ice_pf *pf);
27606c16d89SJacob Keller void ice_ptp_init(struct ice_pf *pf);
27706c16d89SJacob Keller void ice_ptp_release(struct ice_pf *pf);
2786b1ff5d3SJacob Keller void ice_ptp_link_change(struct ice_pf *pf, u8 port, bool linkup);
27906c16d89SJacob Keller #else /* IS_ENABLED(CONFIG_PTP_1588_CLOCK) */
ice_ptp_set_ts_config(struct ice_pf * pf,struct ifreq * ifr)28077a78115SJacob Keller static inline int ice_ptp_set_ts_config(struct ice_pf *pf, struct ifreq *ifr)
28177a78115SJacob Keller {
28277a78115SJacob Keller return -EOPNOTSUPP;
28377a78115SJacob Keller }
28477a78115SJacob Keller
ice_ptp_get_ts_config(struct ice_pf * pf,struct ifreq * ifr)28577a78115SJacob Keller static inline int ice_ptp_get_ts_config(struct ice_pf *pf, struct ifreq *ifr)
28677a78115SJacob Keller {
28777a78115SJacob Keller return -EOPNOTSUPP;
28877a78115SJacob Keller }
28977a78115SJacob Keller
ice_ptp_cfg_timestamp(struct ice_pf * pf,bool ena)29048096710SKarol Kolacinski static inline void ice_ptp_cfg_timestamp(struct ice_pf *pf, bool ena) { }
ice_get_ptp_clock_index(struct ice_pf * pf)29167569a7fSJacob Keller static inline int ice_get_ptp_clock_index(struct ice_pf *pf)
29267569a7fSJacob Keller {
29367569a7fSJacob Keller return -1;
29467569a7fSJacob Keller }
29577a78115SJacob Keller
ice_ptp_extts_event(struct ice_pf * pf)2966e8b2c88SKarol Kolacinski static inline void ice_ptp_extts_event(struct ice_pf *pf) { }
2974d7f75feSLorenzo Bianconi static inline s8
ice_ptp_request_ts(struct ice_ptp_tx * tx,struct sk_buff * skb)298ea9b847cSJacob Keller ice_ptp_request_ts(struct ice_ptp_tx *tx, struct sk_buff *skb)
299ea9b847cSJacob Keller {
300ea9b847cSJacob Keller return -1;
301ea9b847cSJacob Keller }
302ea9b847cSJacob Keller
ice_ptp_process_ts(struct ice_pf * pf)3031229b339SKarol Kolacinski static inline bool ice_ptp_process_ts(struct ice_pf *pf)
3041229b339SKarol Kolacinski {
3051229b339SKarol Kolacinski return true;
3061229b339SKarol Kolacinski }
30777a78115SJacob Keller static inline void
ice_ptp_rx_hwtstamp(struct ice_rx_ring * rx_ring,union ice_32b_rx_flex_desc * rx_desc,struct sk_buff * skb)308e72bba21SMaciej Fijalkowski ice_ptp_rx_hwtstamp(struct ice_rx_ring *rx_ring,
30977a78115SJacob Keller union ice_32b_rx_flex_desc *rx_desc, struct sk_buff *skb) { }
ice_ptp_reset(struct ice_pf * pf)31048096710SKarol Kolacinski static inline void ice_ptp_reset(struct ice_pf *pf) { }
ice_ptp_prepare_for_reset(struct ice_pf * pf)31148096710SKarol Kolacinski static inline void ice_ptp_prepare_for_reset(struct ice_pf *pf) { }
ice_ptp_init(struct ice_pf * pf)31206c16d89SJacob Keller static inline void ice_ptp_init(struct ice_pf *pf) { }
ice_ptp_release(struct ice_pf * pf)31306c16d89SJacob Keller static inline void ice_ptp_release(struct ice_pf *pf) { }
ice_ptp_link_change(struct ice_pf * pf,u8 port,bool linkup)3146b1ff5d3SJacob Keller static inline void ice_ptp_link_change(struct ice_pf *pf, u8 port, bool linkup)
3156b1ff5d3SJacob Keller {
3166b1ff5d3SJacob Keller }
31706c16d89SJacob Keller #endif /* IS_ENABLED(CONFIG_PTP_1588_CLOCK) */
31806c16d89SJacob Keller #endif /* _ICE_PTP_H_ */
319