]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf7e382bb938a3f19dad56fe5977ff02cbdb0910e
tree15f67e721ae79cc884218a6f70299c7ddb96bb8e
parent2e6c5b581d3c5a060bf5e4acf7aedc4f659e4598
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