[PATCH RFC net-next 10/19] dpll: drop device events from the in-kernel notifier

From: Ivan Vecera

Date: Thu Nov 26 2026 - 15:34:04 EST


Commit 2be467588d6b ("dpll: Add notifier chain for dpll events") sends
device created, deleted and changed events to the in-kernel notifier
chain, but no driver ever handled them. The only driver that uses the
notifier, ice, waits for pins with a firmware node and ignores
everything else.

Keep the pin events and remove the device ones.

Signed-off-by: Ivan Vecera <ivecera@xxxxxxxxxx>
---
drivers/dpll/dpll_core.c | 13 -------------
drivers/dpll/dpll_core.h | 1 -
drivers/dpll/dpll_netlink.c | 3 ---
include/linux/dpll.h | 11 -----------
4 files changed, 28 deletions(-)

diff --git a/drivers/dpll/dpll_core.c b/drivers/dpll/dpll_core.c
index b1b76856c4a188..2371b81181471d 100644
--- a/drivers/dpll/dpll_core.c
+++ b/drivers/dpll/dpll_core.c
@@ -61,19 +61,6 @@ static int call_dpll_notifiers(unsigned long action, void *info)
return raw_notifier_call_chain(&dpll_notifier_chain, action, info);
}

-void dpll_device_notify(struct dpll_device *dpll, unsigned long action)
-{
- struct dpll_device_notifier_info info = {
- .dpll = dpll,
- .id = dpll->id,
- .idx = dpll->device_idx,
- .clock_id = dpll->clock_id,
- .type = dpll->type,
- };
-
- call_dpll_notifiers(action, &info);
-}
-
void dpll_pin_notify(struct dpll_pin *pin, unsigned long action)
{
struct dpll_pin_notifier_info info = {
diff --git a/drivers/dpll/dpll_core.h b/drivers/dpll/dpll_core.h
index eb33ae2d6080ab..1b3c74ef4c1b42 100644
--- a/drivers/dpll/dpll_core.h
+++ b/drivers/dpll/dpll_core.h
@@ -113,7 +113,6 @@ extern struct xarray dpll_device_xa;
extern struct xarray dpll_pin_xa;
extern struct mutex dpll_lock;

-void dpll_device_notify(struct dpll_device *dpll, unsigned long action);
void dpll_pin_notify(struct dpll_pin *pin, unsigned long action);

#endif
diff --git a/drivers/dpll/dpll_netlink.c b/drivers/dpll/dpll_netlink.c
index 7b9fadf3b3668a..78017aae19a6f2 100644
--- a/drivers/dpll/dpll_netlink.c
+++ b/drivers/dpll/dpll_netlink.c
@@ -891,13 +891,11 @@ dpll_device_event_send(enum dpll_cmd event, struct dpll_device *dpll)

int dpll_device_create_ntf(struct dpll_device *dpll)
{
- dpll_device_notify(dpll, DPLL_DEVICE_CREATED);
return dpll_device_event_send(DPLL_CMD_DEVICE_CREATE_NTF, dpll);
}

int dpll_device_delete_ntf(struct dpll_device *dpll)
{
- dpll_device_notify(dpll, DPLL_DEVICE_DELETED);
return dpll_device_event_send(DPLL_CMD_DEVICE_DELETE_NTF, dpll);
}

@@ -912,7 +910,6 @@ int dpll_device_delete_ntf(struct dpll_device *dpll)
int __dpll_device_change_ntf(struct dpll_device *dpll)
{
lockdep_assert_held(&dpll_lock);
- dpll_device_notify(dpll, DPLL_DEVICE_CHANGED);
return dpll_device_event_send(DPLL_CMD_DEVICE_CHANGE_NTF, dpll);
}
EXPORT_SYMBOL_GPL(__dpll_device_change_ntf);
diff --git a/include/linux/dpll.h b/include/linux/dpll.h
index 99118dadb271e0..9eccfe41240418 100644
--- a/include/linux/dpll.h
+++ b/include/linux/dpll.h
@@ -211,21 +211,10 @@ typedef struct ref_tracker *dpll_tracker;
typedef struct {} dpll_tracker;
#endif

-#define DPLL_DEVICE_CREATED 1
-#define DPLL_DEVICE_DELETED 2
-#define DPLL_DEVICE_CHANGED 3
#define DPLL_PIN_CREATED 4
#define DPLL_PIN_DELETED 5
#define DPLL_PIN_CHANGED 6

-struct dpll_device_notifier_info {
- struct dpll_device *dpll;
- u32 id;
- u32 idx;
- u64 clock_id;
- enum dpll_type type;
-};
-
struct dpll_pin_notifier_info {
struct dpll_pin *pin;
u32 id;
--
2.56.1