[PATCH net-next 3/3] net: ethtool: tsconfig: Re-configure hwtstamp upon provider change
Kory Maincent
kory.maincent at bootlin.com
Wed Oct 15 05:45:26 PDT 2025
On Wed, 15 Oct 2025 12:27:23 +0200
Maxime Chevallier <maxime.chevallier at bootlin.com> wrote:
> When a hwprov timestamping source is changed, but without updating the
> timestamping parameters, we may want to reconfigure the timestamping
> source to enable the new provider.
>
> This is especially important if the same HW unit implements 2 providers,
> a precise and an approx one. In this case, we need to make sure we call
> the hwtstamp_set operation for the newly selected provider.
This is a design choice.
Do we want to preserve the hwtstamp config if only the hwtstamp source is
changed from ethtool?
If we want to configure the new source to the old source config we will also
need to remove this condition:
https://elixir.bootlin.com/linux/v6.17.1/source/net/ethtool/tsconfig.c#L339
I do not really have a strong opinion on this, let's discuss which behavior we
prefer.
Regards,
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
More information about the linux-arm-kernel
mailing list