[PATCH net-next v2 0/2] net: micrel: Change how to read TX timestamp

From: Horatiu Vultur
Date: Tue Jun 13 2023 - 05:45:47 EST


Change how to read the timestamp of the received frames. Currently it is
required to read over the MDIO bus each of the timestamps but it is
possible to change to receive the timestamp (the nanosecond part and the
least significant two bits of the second) in the frame.
The first patch makes this change, while the second patch optimized the
read of second part. Because it is not required to read the second part
of the timestmap for each received frame but it is OK to read the second
part twice per second and then cache it.

v1->v2:
- create a patch series instead of single patch
- add optimization for reading the second part of the received timestamp,
read the second twice per second instead of for each frame

Horatiu Vultur (2):
net: micrel: Change to receive timestamp in the frame for lan8841
net: micrel: Schedule work to read seconds for lan8841

drivers/net/phy/micrel.c | 272 ++++++++++++++++++++++++++-------------
1 file changed, 180 insertions(+), 92 deletions(-)

--
2.38.0