can: peak_canfd: Remove setting of RX software timestamp
authorGal Pressman <gal@nvidia.com>
Sun, 1 Sep 2024 11:27:51 +0000 (14:27 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Sep 2024 22:17:47 +0000 (15:17 -0700)
The responsibility for reporting of RX software timestamp has moved to
the core layer (see __ethtool_get_ts_info()), remove usage from the
device drivers.

Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Marc Kleine-Budde <mkl@pengutronix.de>
Link: https://patch.msgid.link/20240901112803.212753-4-gal@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/can/peak_canfd/peak_canfd.c

index b50005397463b6414cf99a0654bc2d92a34b6b99..28f3fd805273060bdeedd1671cf97201f3146f84 100644 (file)
@@ -781,11 +781,8 @@ static int peak_get_ts_info(struct net_device *dev,
 {
        info->so_timestamping =
                SOF_TIMESTAMPING_TX_SOFTWARE |
-               SOF_TIMESTAMPING_RX_SOFTWARE |
-               SOF_TIMESTAMPING_SOFTWARE |
                SOF_TIMESTAMPING_RX_HARDWARE |
                SOF_TIMESTAMPING_RAW_HARDWARE;
-       info->phc_index = -1;
        info->tx_types = BIT(HWTSTAMP_TX_OFF);
        info->rx_filters = BIT(HWTSTAMP_FILTER_ALL);