]> 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)
commitb6ce8126a585a2eea48f419c052f03c325d788d7
treec29d54d4a700c00513e171f604ab3ac5cff6e0d2
parent49d085980eee55e78f1c3c4f73b559ad6a27905b
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