Skip to content

Commit dd1bf47

Browse files
Ryan M. Collinsdavem330
authored andcommitted
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 a8f5cb9 ("smsc95xx: use ethtool_op_get_ts_info()") Signed-off-by: Ryan M. Collins <[email protected]> Acked-by: Florian Fainelli <[email protected]> Acked-by: Doug Berger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 02a3f0d commit dd1bf47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/broadcom/genet/bcmgenet.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,7 @@ static const struct ethtool_ops bcmgenet_ethtool_ops = {
11241124
.set_coalesce = bcmgenet_set_coalesce,
11251125
.get_link_ksettings = bcmgenet_get_link_ksettings,
11261126
.set_link_ksettings = bcmgenet_set_link_ksettings,
1127+
.get_ts_info = ethtool_op_get_ts_info,
11271128
};
11281129

11291130
/* Power down the unimac, based on mode. */

0 commit comments

Comments
 (0)