]> git.baikalelectronics.ru Git - kernel.git/commit
net: fec: ptp: Use the 31-bit ptp timer.
authorLuwei Zhou <b45643@freescale.com>
Fri, 10 Oct 2014 05:15:28 +0000 (13:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Oct 2014 18:45:08 +0000 (14:45 -0400)
commite6393420edd38381eda4157f5788d4d57e3259e2
treebbe3281c2842f1544f1292da34d69f7201dacea4
parent829bfa588a0e9e26e1565cb56da9743520c95e39
net: fec: ptp: Use the 31-bit ptp timer.

When ptp switches from software adjustment to hardware ajustment, linux ptp can't converge.
It is caused by the IP limit. Hardware adjustment logcial have issue when ptp counter
runs over 0x80000000(31 bit counter). The internal IP reference manual already remove 32bit
free-running count support. This patch replace the 32-bit PTP timer with 31-bit.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
Signed-off-by: Frank Li <Frank.Li@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_ptp.c