Skip to content

Commit a8f5cb9

Browse files
Brainikdavem330
authored andcommitted
smsc95xx: use ethtool_op_get_ts_info()
This change enables the use of SW timestamping on Raspberry PI. smsc95xx uses the usbnet transmit function usbnet_start_xmit(), which implements software timestamping. However the SOF_TIMESTAMPING_TX_SOFTWARE capability was missing and only SOF_TIMESTAMPING_RX_SOFTWARE was announced. By using ethtool_op_get_ts_info() as get_ts_info() also the SOF_TIMESTAMPING_TX_SOFTWARE is announced. Signed-off-by: Petr Kulhavy <[email protected]> Reviewed-by: Woojung Huh <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c4c4290 commit a8f5cb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/usb/smsc95xx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,7 @@ static const struct ethtool_ops smsc95xx_ethtool_ops = {
898898
.set_wol = smsc95xx_ethtool_set_wol,
899899
.get_link_ksettings = smsc95xx_get_link_ksettings,
900900
.set_link_ksettings = smsc95xx_set_link_ksettings,
901+
.get_ts_info = ethtool_op_get_ts_info,
901902
};
902903

903904
static int smsc95xx_ioctl(struct net_device *netdev, struct ifreq *rq, int cmd)

0 commit comments

Comments
 (0)