On 2022. 08. 30. 19:18, Sasha Levin wrote:
From: Csókás Bence <csokas.bence@xxxxxxxxx>
[ Upstream commit f79959220fa5fbda939592bf91c7a9ea90419040 ]
On link state change, the controller gets reset,
causing PPS to drop out and the PHC to lose its
time and calibration. So we restart it if needed,
restoring calibration and time registers.
There is an ongoing investigation on netdev@ about a potential kernel panic on kernels newer than 5.12 with this patch applied. Please hold off on backporting to 5.19 until the bugfix is applied to upstream.