[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260113121636.71565-1-ivecera@redhat.com>
Date: Tue, 13 Jan 2026 13:16:33 +0100
From: Ivan Vecera <ivecera@...hat.com>
To: netdev@...r.kernel.org
Cc: Donald Hunter <donald.hunter@...il.com>,
Jakub Kicinski <kuba@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>,
Simon Horman <horms@...nel.org>,
Vadim Fedorenko <vadim.fedorenko@...ux.dev>,
Arkadiusz Kubalewski <arkadiusz.kubalewski@...el.com>,
Jiri Pirko <jiri@...nulli.us>,
Prathosh Satish <Prathosh.Satish@...rochip.com>,
Petr Oros <poros@...hat.com>,
linux-kernel@...r.kernel.org,
Michal Schmidt <mschmidt@...hat.com>
Subject: [PATCH net-next v2 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:
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(-)
--
2.52.0
Powered by blists - more mailing lists