All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/2] dpll: expose clock quality level
@ 2024-10-10 13:06 Jiri Pirko
  2024-10-10 13:06 ` [PATCH net-next v2 1/2] dpll: add clock quality level attribute and op Jiri Pirko
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jiri Pirko @ 2024-10-10 13:06 UTC (permalink / raw)
  To: netdev
  Cc: davem, edumazet, kuba, pabeni, donald.hunter, vadim.fedorenko,
	arkadiusz.kubalewski, saeedm, leon, tariqt

From: Jiri Pirko <jiri@nvidia.com>

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': 540663412652420550,
  'clock-quality-level': 'itu-eeec',      <<<<<<<<<<<<<<<<<<<<<<<<<<
  'id': 0,
  'lock-status': 'unlocked',
  'lock-status-error': 'none',
  'mode': 'manual',
  'mode-supported': ['manual'],
  'module-name': 'mlx5_dpll',
  'type': 'eec'}]

---
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         | 32 ++++++++
 drivers/dpll/dpll_netlink.c                   | 22 +++++
 .../net/ethernet/mellanox/mlx5/core/dpll.c    | 82 +++++++++++++++++++
 include/linux/dpll.h                          |  4 +
 include/uapi/linux/dpll.h                     | 23 ++++++
 5 files changed, 163 insertions(+)

-- 
2.46.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-10-11 11:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-10 13:06 [PATCH net-next v2 0/2] dpll: expose clock quality level Jiri Pirko
2024-10-10 13:06 ` [PATCH net-next v2 1/2] dpll: add clock quality level attribute and op Jiri Pirko
2024-10-11 10:36   ` Donald Hunter
2024-10-11 10:59   ` Vadim Fedorenko
2024-10-10 13:06 ` [PATCH net-next v2 2/2] net/mlx5: DPLL, Add clock quality level op implementation Jiri Pirko
2024-10-11 11:19 ` [PATCH net-next v2 0/2] dpll: expose clock quality level Jiri Pirko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.