Skip to content

ptp: ocp: fix serial port information export

Vadim Fedorenko netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest3 patches 3 repliesApplied 3/3
  2. v63 patches 2 repliesSuperseded

Changes in v7 from the cover letter

- fix issues with applying patches

Patches in v7 All 3 applied

#Subject and filesSizeRepliesApplied
1/3ptp: ocp: convert serial ports to arraydrivers/ptp/ptp_ocp.c+57 -630 repliesApplied
2/3ptp: ocp: adjust sysfs entries to expose tty informationdrivers/ptp/ptp_ocp.c+51 -112 repliesApplied
3/3docs: ABI: update OCP TimeCard sysfs entriesDocumentation/ABI/testing/sysfs-timecard+18 -130 repliesApplied

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGreg Kroah-Hartman
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH net v7 0/3] 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

Vadim Fedorenko (3):
ptp: ocp: convert serial ports to array
ptp: ocp: adjust sysfs entries to expose tty information
docs: ABI: update OCP TimeCard sysfs entries

 Documentation/ABI/testing/sysfs-timecard |  31 +++--
 drivers/ptp/ptp_ocp.c                    | 168 ++++++++++++++---------
 2 files changed, 119 insertions(+), 80 deletions(-)
Signature · 1 line
2.43.5