Commit cde98696 authored by Alessandro Rubini's avatar Alessandro Rubini

kernel: remove temporary hack that disabled stamping

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent a837900a
......@@ -380,7 +380,6 @@ static void __wrn_rx_descriptor(struct wrn_dev *wrn, int desc)
/* RX timestamping part */
//wrn_ppsg_read_time(wrn, &counter_ppsg, &utc);
r1 |= NIC_RX1_D1_TS_INCORRECT; /* FIXME: temporary hack */
if(counter_ppsg < REFCLK_FREQ/4 && ts_r > 3*REFCLK_FREQ/4)
utc--;
......
......@@ -38,7 +38,6 @@ void wrn_tstamp_find_skb(struct wrn_dev *wrn, int desc)
/* so we found the skb, do the timestamping magic */
//wrn_ppsg_read_time(wrn, &counter_ppsg, &utc);
return; /* FIXME: temporary hack */
/* The timestamp nanoseconds value is closer to the end of previous second, but the UTC time
read from PPSG is at the beginning of the next second: adjust UTC seconds to avoid 1 sec
......@@ -87,7 +86,6 @@ static int record_tstamp(struct wrn_dev *wrn, u32 tsval, u32 idreg, u32 r2)
skb = wrn->skb_desc[i].skb;
//wrn_ppsg_read_time(wrn, &counter_ppsg, &utc);
return 0; /* FIXME: temporary hack */
if(counter_ppsg < (tsval & 0xfffffff))
utc--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment