]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: convert to use ocelot_get_txtstamp()
authorYangbo Lu <yangbo.lu@nxp.com>
Wed, 20 Nov 2019 08:23:15 +0000 (16:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Nov 2019 22:39:02 +0000 (14:39 -0800)
commit3bad1b40e07df0800fd0ad7cc9627694d5ab370c
tree3464410c0dce1b20cfe4f73050ccc1b070472195
parentf40b5fcb609c4a4d162b71c4305b33cdbba88828
net: mscc: ocelot: convert to use ocelot_get_txtstamp()

The method getting TX timestamp by reading timestamp FIFO and
matching skbs list is common for DSA Felix driver too.
So move code out of ocelot_board.c, convert to use
ocelot_get_txtstamp() function and export it.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c
drivers/net/ethernet/mscc/ocelot.h
drivers/net/ethernet/mscc/ocelot_board.c
include/soc/mscc/ocelot.h