[PATCH RFC net-next 09/19] dpll: drop the source clock id from pin notifications

From: Ivan Vecera

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


Commit 0bf47f722fa9 ("dpll: extend pin notifier with notification source
ID") added src_clock_id to the pin notifier info, so that ice could
ignore the notifications caused by its own registrations of the zl3073x
pins with its TXC and TSPLL DPLLs. ice does not register those pins any
more and no other notifier user reads the field. Remove it.

The notifications are sent as before, only without the field.

Signed-off-by: Ivan Vecera <ivecera@xxxxxxxxxx>
---
drivers/dpll/dpll_core.c | 14 ++++++--------
drivers/dpll/dpll_core.h | 3 +--
drivers/dpll/dpll_netlink.c | 10 +++++-----
drivers/dpll/dpll_netlink.h | 4 ++--
include/linux/dpll.h | 1 -
5 files changed, 14 insertions(+), 18 deletions(-)

diff --git a/drivers/dpll/dpll_core.c b/drivers/dpll/dpll_core.c
index 57eb4ff2c320e5..b1b76856c4a188 100644
--- a/drivers/dpll/dpll_core.c
+++ b/drivers/dpll/dpll_core.c
@@ -74,8 +74,7 @@ void dpll_device_notify(struct dpll_device *dpll, unsigned long action)
call_dpll_notifiers(action, &info);
}

-void dpll_pin_notify(struct dpll_pin *pin, u64 src_clock_id,
- unsigned long action)
+void dpll_pin_notify(struct dpll_pin *pin, unsigned long action)
{
struct dpll_pin_notifier_info info = {
.pin = pin,
@@ -84,7 +83,6 @@ void dpll_pin_notify(struct dpll_pin *pin, u64 src_clock_id,
.clock_id = pin->clock_id,
.fwnode = pin->fwnode,
.prop = &pin->prop,
- .src_clock_id = src_clock_id,
};

call_dpll_notifiers(action, &info);
@@ -965,7 +963,7 @@ __dpll_pin_register(struct dpll_device *dpll, struct dpll_pin *pin,
goto ref_pin_del;
registered = xa_get_mark(&dpll_pin_xa, pin->id, DPLL_REGISTERED);
xa_set_mark(&dpll_pin_xa, pin->id, DPLL_REGISTERED);
- dpll_pin_create_ntf(pin, dpll->clock_id);
+ dpll_pin_create_ntf(pin);
if (!registered)
dpll_pin_links_ntf(pin);

@@ -1054,7 +1052,7 @@ __dpll_pin_unregister(struct dpll_device *dpll, struct dpll_pin *pin,
const struct dpll_pin_ops *ops, void *priv, void *cookie)
{
ASSERT_DPLL_PIN_REGISTERED(pin);
- dpll_pin_delete_ntf(pin, dpll->clock_id);
+ dpll_pin_delete_ntf(pin);
dpll_xa_ref_pin_del(&dpll->pin_refs, pin, ops, priv, cookie);
dpll_xa_ref_dpll_del(&pin->dpll_refs, dpll, ops, priv, cookie);
if (xa_empty(&pin->dpll_refs)) {
@@ -1128,7 +1126,7 @@ int dpll_pin_on_pin_register(struct dpll_pin *parent, struct dpll_pin *pin,
stop = i;
goto dpll_unregister;
}
- dpll_pin_create_ntf(pin, parent->clock_id);
+ dpll_pin_create_ntf(pin);
}
mutex_unlock(&dpll_lock);

@@ -1137,7 +1135,7 @@ int dpll_pin_on_pin_register(struct dpll_pin *parent, struct dpll_pin *pin,
dpll_unregister:
xa_for_each(&parent->dpll_refs, i, ref)
if (i < stop) {
- dpll_pin_delete_ntf(pin, parent->clock_id);
+ dpll_pin_delete_ntf(pin);
__dpll_pin_unregister(ref->dpll, pin, ops, priv,
parent);
}
@@ -1170,7 +1168,7 @@ void dpll_pin_on_pin_unregister(struct dpll_pin *parent, struct dpll_pin *pin,
reg = dpll_pin_registration_find(ref, ops, priv, parent);
if (!reg)
continue;
- dpll_pin_delete_ntf(pin, parent->clock_id);
+ dpll_pin_delete_ntf(pin);
__dpll_pin_unregister(ref->dpll, pin, ops, priv, parent);
}
dpll_xa_ref_pin_del(&pin->parent_refs, parent, ops, priv, pin);
diff --git a/drivers/dpll/dpll_core.h b/drivers/dpll/dpll_core.h
index f158785bf401b6..eb33ae2d6080ab 100644
--- a/drivers/dpll/dpll_core.h
+++ b/drivers/dpll/dpll_core.h
@@ -114,7 +114,6 @@ 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, u64 src_clock_id,
- 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 fab234553b422a..7b9fadf3b3668a 100644
--- a/drivers/dpll/dpll_netlink.c
+++ b/drivers/dpll/dpll_netlink.c
@@ -969,15 +969,15 @@ dpll_pin_event_send(enum dpll_cmd event, struct dpll_pin *pin)
return ret;
}

-int dpll_pin_create_ntf(struct dpll_pin *pin, u64 src_clock_id)
+int dpll_pin_create_ntf(struct dpll_pin *pin)
{
- dpll_pin_notify(pin, src_clock_id, DPLL_PIN_CREATED);
+ dpll_pin_notify(pin, DPLL_PIN_CREATED);
return dpll_pin_event_send(DPLL_CMD_PIN_CREATE_NTF, pin);
}

-int dpll_pin_delete_ntf(struct dpll_pin *pin, u64 src_clock_id)
+int dpll_pin_delete_ntf(struct dpll_pin *pin)
{
- dpll_pin_notify(pin, src_clock_id, DPLL_PIN_DELETED);
+ dpll_pin_notify(pin, DPLL_PIN_DELETED);
return dpll_pin_event_send(DPLL_CMD_PIN_DELETE_NTF, pin);
}

@@ -992,7 +992,7 @@ int dpll_pin_delete_ntf(struct dpll_pin *pin, u64 src_clock_id)
int __dpll_pin_change_ntf(struct dpll_pin *pin)
{
lockdep_assert_held(&dpll_lock);
- dpll_pin_notify(pin, pin->clock_id, DPLL_PIN_CHANGED);
+ dpll_pin_notify(pin, DPLL_PIN_CHANGED);
return dpll_pin_event_send(DPLL_CMD_PIN_CHANGE_NTF, pin);
}
EXPORT_SYMBOL_GPL(__dpll_pin_change_ntf);
diff --git a/drivers/dpll/dpll_netlink.h b/drivers/dpll/dpll_netlink.h
index bc20bcd248a512..ec7cace106c268 100644
--- a/drivers/dpll/dpll_netlink.h
+++ b/drivers/dpll/dpll_netlink.h
@@ -8,9 +8,9 @@ int dpll_device_create_ntf(struct dpll_device *dpll);

int dpll_device_delete_ntf(struct dpll_device *dpll);

-int dpll_pin_create_ntf(struct dpll_pin *pin, u64 src_clock_id);
+int dpll_pin_create_ntf(struct dpll_pin *pin);

-int dpll_pin_delete_ntf(struct dpll_pin *pin, u64 src_clock_id);
+int dpll_pin_delete_ntf(struct dpll_pin *pin);

#if IS_ENABLED(CONFIG_KUNIT)
/* For KUnit tests, call with dpll_lock held for a registered pin */
diff --git a/include/linux/dpll.h b/include/linux/dpll.h
index e252d3c6b4334a..99118dadb271e0 100644
--- a/include/linux/dpll.h
+++ b/include/linux/dpll.h
@@ -233,7 +233,6 @@ struct dpll_pin_notifier_info {
u64 clock_id;
const struct fwnode_handle *fwnode;
const struct dpll_pin_properties *prop;
- u64 src_clock_id;
};

#if IS_ENABLED(CONFIG_DPLL)
--
2.56.1