]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitf28460b229919387b2f97f3a688d0dd86cc819c9
treebbe3281c2842f1544f1292da34d69f7201dacea4
parent02ea80741a25435123e8a5ca40cac6a0bcf0c9f1
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