From 4db925d7da880001b31415354307604dcbe3a4e6 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 14 Oct 2025 11:03:01 +0200 Subject: [PATCH] udev: create symlinks for s390 PTP devices Similarly to the udev rules handling KVM and Hyper-V PTP devices, create symlinks for the s390-specific STCKE and Physical clocks (supported since Linux 6.13) to have some stable names that can be specified in default configurations of PTP/NTP applications. --- rules.d/50-udev-default.rules.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rules.d/50-udev-default.rules.in b/rules.d/50-udev-default.rules.in index 078a78ad1a..9264b8e021 100644 --- a/rules.d/50-udev-default.rules.in +++ b/rules.d/50-udev-default.rules.in @@ -34,6 +34,8 @@ SUBSYSTEM=="net", IMPORT{builtin}="net_driver" SUBSYSTEM=="ptp", GROUP="clock", MODE="0660" SUBSYSTEM=="ptp", ATTR{clock_name}=="KVM virtual PTP", SYMLINK+="ptp_kvm" SUBSYSTEM=="ptp", ATTR{clock_name}=="hyperv", SYMLINK+="ptp_hyperv" +SUBSYSTEM=="ptp", ATTR{clock_name}=="s390 Physical Clock", SYMLINK+="ptp_s390_physical" +SUBSYSTEM=="ptp", ATTR{clock_name}=="s390 STCKE Clock", SYMLINK+="ptp_s390_stcke" ACTION!="add", GOTO="default_end"