Re: [PATCH net-next v3 0/6] net: mdio: add timestamped MDIO writes for PHY gettimex64
From: Nicolai Buchwitz
Date: Thu Nov 12 2026 - 15:32:05 EST
On November 11, 2026 12:16:02 AM GMT+01:00, Jakub Kicinski <kuba@xxxxxxxxxx> wrote:
>On Thu, 5 Nov 2026 12:48:33 +0700 James Clark wrote:
>> PTP_SYS_OFFSET_EXTENDED uses gettimex64 to bracket each PHC read with
>> system clock reads. Some PHYs have a PTP hardware clock (PHC) that is
>> read over MDIO and sometimes multiple MDIO transfers are needed to read
>> the clock. This leads to brackets in the tens of microseconds.
>> Applications that synchronize the system clock from the PHC typically
>> use the midpoint of the bracket as the system time of the PHC reading.
>> With multiple transfers, the midpoint of the bracket is typically far
>> from the time when the PHC reading actually occurred.
>
>There are some AI nit picks available:
>https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261105054839.2248046-1-jjc@xxxxxxxxxx
>But frankly unless someone with time expertise reviews this it is going
>nowhere.
I have been quite busy with other work, but will try to make some time for a deeper look in the next days.