driver:stmmac: Adjust time stamp increase for 0.465 ns accurate only when Time stamp...
authorSonic Zhang <sonic.zhang@analog.com>
Tue, 3 Sep 2013 05:55:07 +0000 (13:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 18:37:02 +0000 (14:37 -0400)
commit0cf915809ce775cba3f08de5df1fb89bdbd95a28
tree2db34de46fe2eab1e6b83a2d0d8c05d123b4b42f
parentc08751c851b78514f6ec5f77f7cbebaac63d15c0
driver:stmmac: Adjust time stamp increase for 0.465 ns accurate only when Time stamp binary rollover is set.

The synopsys spec says When TSCRLSSR is cleard, the rollover value of
sub-second register is 0x7FFFFFFF(0.465 ns per clock).

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c