Commit eaa7186
committed
Add symlink for ENA PTP device.
ENA PTP device does not have the unique symlink unlike other clock devices:
$ sudo rmmod ena && sudo modprobe ena phc_enable=1
$ ls -al /dev/*ptp*
crw-------. 1 root root 245, 0 May 29 17:34 /dev/ptp0
$ sudo modprobe ptp_kvm
$ ls -al /dev/*ptp*
crw-------. 1 root root 245, 0 May 29 17:34 /dev/ptp0
crw-------. 1 root root 245, 1 May 29 17:35 /dev/ptp1
lrwxrwxrwx. 1 root root 4 May 29 17:35 /dev/ptp_kvm -> ptp1
This could lead customers to use a wrong device.
Let's add a udev rule to create the unique symlink for ENA PTP as ptp_ena.
With the new rule:
$ sudo rmmod ena && sudo modprobe ena phc_enable=1
$ ls -al /dev/*ptp*
lrwxrwxrwx. 1 root root 4 May 29 17:37 /dev/ptp_ena -> ptp0
crw-------. 1 root root 245, 0 May 29 17:37 /dev/ptp0
crw-------. 1 root root 245, 1 May 29 17:35 /dev/ptp1
lrwxrwxrwx. 1 root root 4 May 29 17:35 /dev/ptp_kvm -> ptp1
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>1 parent 09b53f2 commit eaa7186
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
78 | 84 | | |
79 | 85 | | |
80 | 86 | | |
| |||
0 commit comments