Based on previous topic: SJA1105Q cannot forward eth packages form the rgmii interface of the cpu's eth1
I use the ts2phc tool to pass the time of other phc to sja1105 phc:
ts2phc -f /root/ethernet/ts2phc.cfg &
ptp4l -i sw0p0 -i sw0p1 -i sw0p2 -i sw0p3 -f /root/ethernet/automotive-master-5515.cfg --tx_timestamp_timeout 30 &
root@zynqmp_ubuntu:~/ethernet# cat ts2phc.cfg
#
# ts2phc config file to get it to behave like syncd to align
# time stamper to PHC device's 1-PPS signal.
#
# Example:
# ./ts2phc -m -q -f ts2phc.cfg
#
[global]
clock_servo pi
first_step_threshold 0.000000001
step_threshold 0.000000001
logging_level 7
max_frequency 0
verbose 1
use_syslog 0
free_running 0
ts2phc.pulsewidth 990000000
# time stamper, slave device
[/dev/ptp0]
ts2phc.channel 0
ts2phc.extts_polarity both
ts2phc.extts_correction 1050
#[/dev/ptp1]
#ts2phc.channel 0
#ts2phc.extts_polarity both
#ts2phc.extts_correction 1050
[/dev/ptp2]
ts2phc.master 1
ts2phc.channel 0
After a few hours of normal operation, the kernel prints an error about SPI time out and then the cpu freezes.

This is bound to happen, except when I'm not running the sja1105 related applications (ts2phc and ptp4l).When I don't run the time synchronization application about sja1105, the system can run normally for more than 26 hours.
I tried looking for kernel patches and couldn't find a similar patch, so I can't tell where the problem is at the moment.