From 378f1d34ec9d43a7c97ca0e2025ca5e2bb929e2b Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Wed, 18 Mar 2026 13:31:46 -0700 Subject: [PATCH] cndm: Do not report timestamping support when PTP clock is not present Signed-off-by: Alex Forencich --- src/cndm/modules/cndm/cndm_ethtool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cndm/modules/cndm/cndm_ethtool.c b/src/cndm/modules/cndm/cndm_ethtool.c index 917579b..22607b5 100644 --- a/src/cndm/modules/cndm/cndm_ethtool.c +++ b/src/cndm/modules/cndm/cndm_ethtool.c @@ -44,8 +44,8 @@ static int cndm_get_ts_info(struct net_device *ndev, if (cdev->ptp_clock) info->phc_index = ptp_clock_index(cdev->ptp_clock); - // if (!(priv->if_features & cndm_IF_FEATURE_PTP_TS) || !cdev->ptp_clock) - // return 0; + if (!cdev->ptp_clock) + return 0; info->so_timestamping |= SOF_TIMESTAMPING_TX_HARDWARE | SOF_TIMESTAMPING_RX_HARDWARE | SOF_TIMESTAMPING_RAW_HARDWARE;