# Re: \[PATCH net-next v17 07/14\] ptp: Add phc source and helpers to register specific PTP clock or get information

- From: Jacob Keller \<jacob.e.keller@intel.com\>
- Date: 2024-07-15 23:45:02 
- List: netdev
- Page: https://ratatoskr.run/netdev/2024/07/2675622
- Thread: https://ratatoskr.run/netdev/2024/07/2668652/t.md

```text


On 7/9/2024 6:53 AM, Kory Maincent wrote:
> Prepare for future hardware timestamp selection by adding source and
> corresponding pointers to ptp_clock structure.
> Additionally, introduce helpers for registering specific phydev or netdev
> PTP clocks, retrieving PTP clock information such as hwtstamp source or
> phydev/netdev pointers, and obtaining the ptp_clock structure from the
> phc index.
> These helpers are added to a new ptp_clock_consumer.c file, built as
> builtin. This is necessary because these helpers will be called by
> ethtool or net timestamping, which are builtin code.
> 
> Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
> ---

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
```
