Re: [PATCH RFC net-next] net: phy: add Marvell PHY PTP support

From
Richard Cochran <richardcochran@gmail.com>
Date
2020-07-29 13:19:38
Reply to
Russell King - ARM Linux admin, 2020-07-29
On Wed, Jul 29, 2020 at 11:58:07AM +0100, Russell King - ARM Linux admin wrote:
How do we deal with this situation - from what I can see from the
ethtool API, we have to make a choice about which to use.  How do we
make that choice?
Unfortunately the stack does not implement simultaneous MAC + PHY time
stamping.  If your board has both, then you make the choice to use the
PHY by selecting NETWORK_PHY_TIMESTAMPING at kernel compile time.

(Also some MAC drivers do not defer to the PHY properly.  Sometimes
you can work around that by de-selecting the MAC's PTP function in the
Kconfig if possible, but otherwise you need to patch the MAC driver.)
 
Do we need a property to indicate whether we wish to use the PHY
or MAC PTP stamping, or something more elaborate?
To do this at run time would require quite some work, I expect.

Thanks,
Richard
Thread (74 messages) 74 messages, 9 authors, last reply 2023-04-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help