Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions hw_atl/hw_atl_b0.c
Original file line number Diff line number Diff line change
Expand Up @@ -1396,6 +1396,10 @@ static int hw_atl_b0_adj_clock_freq(struct aq_hw_s *self, s32 ppb)
AQ_HW_PHY_COUNTER_HZ,
AQ_HW_MAC_COUNTER_HZ);

// Workaround for sudden jumps in clock time. See https://www.spinics.net/lists/netdev/msg1013570.html .
if (((s32)fwreq.ptp_adj_freq.mac_ns_adj) < 0)
fwreq.ptp_adj_freq.mac_ns_adj = fwreq.ptp_adj_freq.mac_fns_adj = 0;

size = sizeof(fwreq.msg_id) + sizeof(fwreq.ptp_adj_freq);
return self->aq_fw_ops->send_fw_request(self, &fwreq, size);
}
Expand Down