Skip to content

dpll: expose clock quality level

Jiri Pirko netdev 4 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 0 repliesApplied 2/2
  2. v32 patches 16 repliesSuperseded
  3. v22 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches13 repliesSuperseded

Changes in v4 from the cover letter

- changed clock-quality-level enum documentation to clearly talk about holdover status.
- added documentation of clock-quality-level attribute to explain when it can be put multiple times

Patches in v4 All 2 applied

#Subject and filesSizeRepliesApplied
1/2dpll: add clock quality level attribute and opDocumentation/netlink/specs/dpll.yaml drivers/dpll/dpll_netlink.c include/linux/dpll.h +1 more+93 -00 repliesApplied
2/2net/mlx5: DPLL, Add clock quality level op implementationdrivers/net/ethernet/mellanox/mlx5/core/dpll.c+81 -00 repliesApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchArkadiusz Kubalewski
1/2
2/2R-b

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

Read the v4 thread

Cover letter [PATCH net-next v4 0/2] dpll: expose clock quality level

From: Jiri Pirko <[email protected]>

Some device driver might know the quality of the clock it is running. In order to expose the information to the user, introduce new netlink attribute and dpll device op. Implement the op in mlx5 driver.

Example:

$ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/dpll.yaml --dump device-get
[{'clock-id': 13316852727532664826,
  'clock-quality-level': ['itu-opt1-eeec'],    <<<<<<<<<<<<<<<<<
  'id': 0,
  'lock-status': 'unlocked',
  'lock-status-error': 'none',
  'mode': 'manual',
  'mode-supported': ['manual'],
  'module-name': 'mlx5_dpll',
  'type': 'eec'}]

---
v3->v4:
- changed clock-quality-level enum documentation to clearly talk about holdover status.
- added documentation of clock-quality-level attribute to explain when it can be put multiple times
v2->v3:
- changed "itu" prefix to "itu-opt1"
- changed driver op to pass bitmap to allow to set multiple qualities and pass it to user over multiple attrs
- enhanced the documentation a bit
v1->v2:
- extended quality enum documentation
- added "itu" prefix to the enum values

Jiri Pirko (2):
dpll: add clock quality level attribute and op net/mlx5: DPLL, Add clock quality level op implementation

 Documentation/netlink/specs/dpll.yaml         | 41 ++++++++++
 drivers/dpll/dpll_netlink.c                   | 24 ++++++
 .../net/ethernet/mellanox/mlx5/core/dpll.c    | 81 +++++++++++++++++++
 include/linux/dpll.h                          |  4 +
 include/uapi/linux/dpll.h                     | 24 ++++++
 5 files changed, 174 insertions(+)
Signature · 1 line
2.47.0