@@ -613,6 +613,15 @@ static int emac_set_coalesce(struct net_device *ndev,
}
+static int emac_get_ts_info(struct net_device *nd, struct ethtool_ts_info *info)
+{
+ info->so_timestamping =
+ SOF_TIMESTAMPING_TX_SOFTWARE |
+ SOF_TIMESTAMPING_RX_SOFTWARE |
+ SOF_TIMESTAMPING_SOFTWARE;
+ info->phc_index = -1;
+ return 0;
+}
/**
* ethtool_ops: DaVinci EMAC Ethtool structure
@@ -627,6 +636,7 @@ static const struct ethtool_ops ethtool_ops = {
.get_link = ethtool_op_get_link,
.get_coalesce = emac_get_coalesce,
.set_coalesce = emac_set_coalesce,
+ .get_ts_info = emac_get_ts_info,
};
/**
Signed-off-by: Richard Cochran <richardcochran@gmail.com> --- drivers/net/ethernet/ti/davinci_emac.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)