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

From: Jacob Keller
Date: Mon Jul 15 2024 - 19:45:14 EST




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@xxxxxxxxxxx>
> ---

Reviewed-by: Jacob Keller <jacob.e.keller@xxxxxxxxx>