Skip to content
Snippets Groups Projects
Commit cde98696 authored by Alessandro Rubini's avatar Alessandro Rubini
Browse files

kernel: remove temporary hack that disabled stamping


Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
parent a837900a
Branches
Tags
No related merge requests found
...@@ -380,7 +380,6 @@ static void __wrn_rx_descriptor(struct wrn_dev *wrn, int desc) ...@@ -380,7 +380,6 @@ static void __wrn_rx_descriptor(struct wrn_dev *wrn, int desc)
/* RX timestamping part */ /* RX timestamping part */
//wrn_ppsg_read_time(wrn, &counter_ppsg, &utc); //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) if(counter_ppsg < REFCLK_FREQ/4 && ts_r > 3*REFCLK_FREQ/4)
utc--; utc--;
......
...@@ -38,7 +38,6 @@ void wrn_tstamp_find_skb(struct wrn_dev *wrn, int desc) ...@@ -38,7 +38,6 @@ void wrn_tstamp_find_skb(struct wrn_dev *wrn, int desc)
/* so we found the skb, do the timestamping magic */ /* so we found the skb, do the timestamping magic */
//wrn_ppsg_read_time(wrn, &counter_ppsg, &utc); //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 /* 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 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) ...@@ -87,7 +86,6 @@ static int record_tstamp(struct wrn_dev *wrn, u32 tsval, u32 idreg, u32 r2)
skb = wrn->skb_desc[i].skb; skb = wrn->skb_desc[i].skb;
//wrn_ppsg_read_time(wrn, &counter_ppsg, &utc); //wrn_ppsg_read_time(wrn, &counter_ppsg, &utc);
return 0; /* FIXME: temporary hack */
if(counter_ppsg < (tsval & 0xfffffff)) if(counter_ppsg < (tsval & 0xfffffff))
utc--; utc--;
......
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