Linux PTP driver issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linux PTP driver issue

Jump to solution
287 Views
thousel
Contributor I

Hi. I'm using LinuxPTP on an i.MX7D (on a Compulab module), and I think I've found an issue with the PTP driver in drivers/net/ethernet/freescale/fec_ptp.c (which is still in the current git head at https://github.com/nxp-imx/linux-imx/blob/lf-6.12.y/drivers/net/ethernet/freescale/fec_ptp.c)

The issue is that the ENETx_ATCOR register (called FEC_ATIME_CORR in the driver) is not initialized in fec_ptp_start_cyclecounter. If fec_ptp_adjfine sets it to a weird place, there's no way to fix it, except for rebooting. Since ENETx_ATINC (FEC_ATIME_INC) is reinitialized in fec_ptp_start_cyclecounter, ENETx_ATCOR should be as well (to its reset value of 0 I believe).

Otherwise if ENETx_ATCOR starts at a bad value, LinuxPTP can get into states where it won't converge.

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
253 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @thousel 

Thanks for your suggestion, i will contact with our sw team talk about this.

B.R

View solution in original post

0 Kudos
Reply
1 Reply
254 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @thousel 

Thanks for your suggestion, i will contact with our sw team talk about this.

B.R

0 Kudos
Reply