> -----Original Message-----
> From: Intel-wired-lan <[email protected]> On Behalf
> Of Ivan Vecera
> Sent: Tuesday, February 3, 2026 6:40 PM
> To: [email protected]
> Cc: Eric Dumazet <[email protected]>; Nguyen, Anthony L
> <[email protected]>; Leon Romanovsky <[email protected]>;
> Lobakin, Aleksander <[email protected]>; linux-
> [email protected]; Kitszel, Przemyslaw
> <[email protected]>; Kubalewski, Arkadiusz
> <[email protected]>; [email protected];
> Jakub Kicinski <[email protected]>; Paolo Abeni <[email protected]>;
> Jiri Pirko <[email protected]>; Richard Cochran
> <[email protected]>; Prathosh Satish
> <[email protected]>; Vadim Fedorenko
> <[email protected]>; Mark Bloch <[email protected]>; linux-
> [email protected]; Tariq Toukan <[email protected]>; Andrew Lunn
> <[email protected]>; Jonathan Lemon <[email protected]>;
> Saeed Mahameed <[email protected]>; David S. Miller
> <[email protected]>
> Subject: [Intel-wired-lan] [PATCH net-next v5 3/9] dpll: Add notifier
> chain for dpll events
> 
> From: Petr Oros <[email protected]>
> 
> 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 <[email protected]>
> Co-developed-by: Ivan Vecera <[email protected]>
> Signed-off-by: Ivan Vecera <[email protected]>
> Signed-off-by: Petr Oros <[email protected]>
> ---
>  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 <[email protected]>

Reply via email to