]> git.baikalelectronics.ru Git - kernel.git/commit
smsc95xx: use ethtool_op_get_ts_info()
authorPetr Kulhavy <brain@jikos.cz>
Thu, 13 Jul 2017 17:40:57 +0000 (19:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jul 2017 15:54:03 +0000 (08:54 -0700)
commitb75da18c58e61fdf7a50645c7c7ce6b6b2a35d1f
tree145e322b6471a456b97d30bc1003be24528b84e7
parentc7895e0a8cf6c1635edb06eed37ac752ed5d6568
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 <brain@jikos.cz>
Reviewed-by: Woojung Huh <Woojung.Huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c