cndm: Do not report timestamping support when PTP clock is not present

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich
2026-03-18 13:31:46 -07:00
parent cb2a7af632
commit 378f1d34ec

View File

@@ -44,8 +44,8 @@ static int cndm_get_ts_info(struct net_device *ndev,
if (cdev->ptp_clock) if (cdev->ptp_clock)
info->phc_index = ptp_clock_index(cdev->ptp_clock); info->phc_index = ptp_clock_index(cdev->ptp_clock);
// if (!(priv->if_features & cndm_IF_FEATURE_PTP_TS) || !cdev->ptp_clock) if (!cdev->ptp_clock)
// return 0; return 0;
info->so_timestamping |= SOF_TIMESTAMPING_TX_HARDWARE | info->so_timestamping |= SOF_TIMESTAMPING_TX_HARDWARE |
SOF_TIMESTAMPING_RX_HARDWARE | SOF_TIMESTAMPING_RAW_HARDWARE; SOF_TIMESTAMPING_RX_HARDWARE | SOF_TIMESTAMPING_RAW_HARDWARE;