OSDN Git Service

net: ocelot: add and export ocelot_ptp_rx_timestamp()
authorClément Léger <clement.leger@bootlin.com>
Thu, 9 Dec 2021 15:49:09 +0000 (16:49 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 Dec 2021 04:56:57 +0000 (20:56 -0800)
commitb471a71e525c73608a6ae5a3fdd2a5d1224da6a9
tree15f67e721ae79cc884218a6f70299c7ddb96bb8e
parente5150f00721f6f8e7b4e7f31bff86b4b6a8de0d4
net: ocelot: add and export ocelot_ptp_rx_timestamp()

In order to support PTP in FDMA, PTP handling code is needed. Since
this is the same as for register-based extraction, export it with
a new ocelot_ptp_rx_timestamp() function.

Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mscc/ocelot.c
include/soc/mscc/ocelot.h