# Re: \[PATCH net-next 05/12\] dpll: Add notifier chain for dpll events

- From: Vadim Fedorenko \<vadim.fedorenko@linux.dev\>
- Date: 2026-01-09 16:12:36 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/01/3360804
- Thread: https://ratatoskr.run/netdev/2026/01/3359133/t.md

```text
On 08/01/2026 18:23, Ivan Vecera wrote:
> 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.
>
> Co-developed-by: Ivan Vecera <ivecera@redhat.com>
> Signed-off-by: Ivan Vecera <ivecera@redhat.com>
> Signed-off-by: Petr Oros <redacted>

LGTM, Thanks!

Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
```
