]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: allow offloading timestamping operations to the PHY
authorAntoine Tenart <antoine.tenart@bootlin.com>
Tue, 26 May 2020 15:01:49 +0000 (17:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 21:54:31 +0000 (14:54 -0700)
commit4be868eafc4ddbd40c430b0aa3c54220100f8e4a
treec29d54d4a700c00513e171f604ab3ac5cff6e0d2
parente5c8953c92944f1e352973f1a1fb7591b3c96f69
net: mscc: allow offloading timestamping operations to the PHY

This patch adds support for offloading timestamping operations not only
to the Ocelot switch (as already supported) but to compatible PHYs.
When both the PHY and the Ocelot switch support timestamping operations,
the PHY implementation is chosen as the timestamp will happen closer to
the medium.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c
drivers/net/ethernet/mscc/ocelot_board.c