forked from wedsonaf/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ptp-ocp-fix-serial-port-information-export'
Vadim Fedorenko says: ==================== ptp: ocp: fix serial port information export Starting v6.8 the serial port subsystem changed the hierarchy of devices and symlinks are not working anymore. Previous discussion made it clear that the idea of symlinks for tty devices was wrong by design [1]. This series implements additional attributes to expose the information and removes symlinks for tty devices. [1] https://lore.kernel.org/netdev/2024060503-subsonic-pupil-bbee@gregkh/ v6 -> v7: - fix issues with applying patches v5 -> v6: - split conversion to array to separate patch per Jiri's feedback - move changelog to cover letter v4 -> v5: - remove unused variable in ptp_ocp_tty_show v3 -> v4: - re-organize info printing to use ptp_ocp_tty_port_name() - keep uintptr_t to be consistent with other code v2 -> v3: - replace serial ports definitions with array and enum for index - replace pointer math with direct array access - nit in documentation spelling v1 -> v2: - add Documentation/ABI changes ==================== Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
- Loading branch information
Showing
2 changed files
with
119 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -258,24 +258,29 @@ Description: (RW) When retrieving the PHC with the PTP SYS_OFFSET_EXTENDED | |
the estimated point where the FPGA latches the PHC time. This | ||
value may be changed by writing an unsigned integer. | ||
|
||
What: /sys/class/timecard/ocpN/ttyGNSS | ||
What: /sys/class/timecard/ocpN/ttyGNSS2 | ||
Date: September 2021 | ||
What: /sys/class/timecard/ocpN/tty | ||
Date: August 2024 | ||
Contact: Vadim Fedorenko <[email protected]> | ||
Description: (RO) Directory containing the sysfs nodes for TTY attributes | ||
|
||
What: /sys/class/timecard/ocpN/tty/ttyGNSS | ||
What: /sys/class/timecard/ocpN/tty/ttyGNSS2 | ||
Date: August 2024 | ||
Contact: Jonathan Lemon <[email protected]> | ||
Description: These optional attributes link to the TTY serial ports | ||
associated with the GNSS devices. | ||
Description: (RO) These optional attributes contain names of the TTY serial | ||
ports associated with the GNSS devices. | ||
|
||
What: /sys/class/timecard/ocpN/ttyMAC | ||
Date: September 2021 | ||
What: /sys/class/timecard/ocpN/tty/ttyMAC | ||
Date: August 2024 | ||
Contact: Jonathan Lemon <[email protected]> | ||
Description: This optional attribute links to the TTY serial port | ||
associated with the Miniature Atomic Clock. | ||
Description: (RO) This optional attribute contains name of the TTY serial | ||
port associated with the Miniature Atomic Clock. | ||
|
||
What: /sys/class/timecard/ocpN/ttyNMEA | ||
Date: September 2021 | ||
What: /sys/class/timecard/ocpN/tty/ttyNMEA | ||
Date: August 2024 | ||
Contact: Jonathan Lemon <[email protected]> | ||
Description: This optional attribute links to the TTY serial port | ||
which outputs the PHC time in NMEA ZDA format. | ||
Description: (RO) This optional attribute contains name of the TTY serial | ||
port which outputs the PHC time in NMEA ZDA format. | ||
|
||
What: /sys/class/timecard/ocpN/utc_tai_offset | ||
Date: September 2021 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters