Skip to content

dpll: support mode switching

Ivan Vecera lkml netdev 3 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. v3 Latest3 patches 1 replyApplied 3/3
  2. v23 patches 2 repliesSuperseded
  3. v13 patches 5 repliesSuperseded

Changelog from the cover letter

v3 - fixed reverse xmas tree order in dpll_mode_set() v2 - addressed issues reported by Vadim

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3dpll: add dpll_device op to get supported modesdrivers/dpll/dpll_netlink.c include/linux/dpll.h+22 -80 repliesApplied
2/3dpll: add dpll_device op to set working modeDocumentation/netlink/specs/dpll.yaml drivers/dpll/dpll_netlink.c drivers/dpll/dpll_nl.c +1 more+48 -00 repliesApplied
3/3dpll: zl3073x: Implement device mode setting supportdrivers/dpll/zl3073x/dpll.c+112 -01 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchVadim FedorenkoPrathosh Satish
1/3R-b
2/3R-b
3/3R-b

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

Read the v3 thread

Cover letter [PATCH net-next v3 0/3] dpll: support mode switching

This series adds support for switching the working mode (automatic vs manual) of a DPLL device via netlink.

Currently, the DPLL subsystem allows userspace to retrieve the current working mode but lacks the mechanism to configure it. Userspace is also unaware of which modes a specific device actually supports, as it currently assumes only the active mode is supported.

The series addresses these limitations by:
1. Introducing .supported_modes_get() callback to allow drivers to report all modes capable of running on the device.
2. Introducing .mode_set() callback and updating the netlink policy to allow userspace to request a mode change.
3. Implementing these callbacks in the zl3073x driver, enabling dynamic switching between automatic and manual modes.

Changelog:
v3 - fixed reverse xmas tree order in dpll_mode_set() v2 - addressed issues reported by Vadim

Ivan Vecera (3):
dpll: add dpll_device op to get supported modes
dpll: add dpll_device op to set working mode
dpll: zl3073x: Implement device mode setting support

 Documentation/netlink/specs/dpll.yaml |   1 +
 drivers/dpll/dpll_netlink.c           |  71 ++++++++++++++--
 drivers/dpll/dpll_nl.c                |   1 +
 drivers/dpll/zl3073x/dpll.c           | 112 ++++++++++++++++++++++++++
 include/linux/dpll.h                  |   5 ++
 5 files changed, 182 insertions(+), 8 deletions(-)
Signature · 1 line
2.52.0