Thread (20 messages) 20 messages, 4 authors, 2026-02-05

RE: [Intel-wired-lan] [PATCH net-next v5 3/9] dpll: Add notifier chain for dpll events

From: Loktionov, Aleksandr <hidden>
Date: 2026-02-05 10:17:28
Also in: intel-wired-lan, linux-rdma, lkml

quoted hunk ↗ jump to hunk
-----Original Message-----
From: Intel-wired-lan <redacted> On Behalf
Of Ivan Vecera
Sent: Tuesday, February 3, 2026 6:40 PM
To: netdev@vger.kernel.org
Cc: Eric Dumazet <edumazet@google.com>; Nguyen, Anthony L
[off-list ref]; Leon Romanovsky [off-list ref];
Lobakin, Aleksander [off-list ref]; linux-
rdma@vger.kernel.org; Kitszel, Przemyslaw
[off-list ref]; Kubalewski, Arkadiusz
[off-list ref]; intel-wired-lan@lists.osuosl.org;
Jakub Kicinski [off-list ref]; Paolo Abeni [off-list ref];
Jiri Pirko [off-list ref]; Richard Cochran
[off-list ref]; Prathosh Satish
[off-list ref]; Vadim Fedorenko
[off-list ref]; Mark Bloch [off-list ref]; linux-
kernel@vger.kernel.org; Tariq Toukan [off-list ref]; Andrew Lunn
[off-list ref]; Jonathan Lemon [off-list ref];
Saeed Mahameed [off-list ref]; David S. Miller
[off-list ref]
Subject: [Intel-wired-lan] [PATCH net-next v5 3/9] dpll: Add notifier
chain for dpll events

From: Petr Oros <redacted>

Currently, the DPLL subsystem reports events (creation, deletion,
changes) to userspace via Netlink. However, there is no mechanism for
other kernel components to be notified of these events directly.

Add a raw notifier chain to the DPLL core protected by dpll_lock. This
allows other kernel subsystems or drivers to register callbacks and
receive notifications when DPLL devices or pins are created, deleted,
or modified.

Define the following:
- Registration helpers: {,un}register_dpll_notifier()
- Event types: DPLL_DEVICE_CREATED, DPLL_PIN_CREATED, etc.
- Context structures: dpll_{device,pin}_notifier_info  to pass
relevant
  data to the listeners.

The notification chain is invoked alongside the existing Netlink event
generation to ensure in-kernel listeners are kept in sync with the
subsystem state.

Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Co-developed-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: Petr Oros <redacted>
---
 drivers/dpll/dpll_core.c    | 57
+++++++++++++++++++++++++++++++++++++
 drivers/dpll/dpll_core.h    |  4 +++
 drivers/dpll/dpll_netlink.c |  6 ++++
 include/linux/dpll.h        | 29 +++++++++++++++++++
 4 files changed, 96 insertions(+)
diff --git a/drivers/dpll/dpll_core.c b/drivers/dpll/dpll_core.c index
f04ed7195cadd..b05fe2ba46d91 100644
--- a/drivers/dpll/dpll_core.c
+++ b/drivers/dpll/dpll_core.c
@@ -23,6 +23,8 @@ DEFINE_MUTEX(dpll_lock);
DEFINE_XARRAY_FLAGS(dpll_device_xa, XA_FLAGS_ALLOC);
DEFINE_XARRAY_FLAGS(dpll_pin_xa, XA_FLAGS_ALLOC);

+static RAW_NOTIFIER_HEAD(dpll_notifier_chain);
+
...
--
2.52.0
Reviewed-by: Aleksandr Loktionov <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help