mirror of
https://github.com/fpganinja/taxi.git
synced 2026-04-07 04:38:42 -07:00
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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user