]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: use ethtool_op_get_ts_info()
authorRyan M. Collins <rmc032@bucknell.edu>
Fri, 30 Aug 2019 18:49:55 +0000 (14:49 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Sep 2019 06:51:19 +0000 (23:51 -0700)
commit4b204a9469c2d0a2751d49b6ff59822a0c156ab8
tree545be319ac6fabcd598394041d6ce87e27dc863f
parentbb34ab4c77dde37fea9c5dbe0ccd6f340f60013d
net: bcmgenet: use ethtool_op_get_ts_info()

This change enables the use of SW timestamping on the Raspberry Pi 4.

bcmgenet's transmit function bcmgenet_xmit() implements software
timestamping. However the SOF_TIMESTAMPING_TX_SOFTWARE capability was
missing and only SOF_TIMESTAMPING_RX_SOFTWARE was announced. By using
ethtool_ops bcmgenet_ethtool_ops() as get_ts_info(), the
SOF_TIMESTAMPING_TX_SOFTWARE capability is announced.

Similar to commit 5908ea3999fe ("smsc95xx: use ethtool_op_get_ts_info()")

Signed-off-by: Ryan M. Collins <rmc032@bucknell.edu>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c