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)
commitb2e118f638fb8984e430624a8cf27483cc23cf8d
treec29d54d4a700c00513e171f604ab3ac5cff6e0d2
parent7ff4f3f315db361e35c1d61a6fdbfddbe345b633
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