[PATCH net-next v5 2/9] dpll: zl3073x: Associate pin with fwnode handle

Ivan Vecera posted 9 patches 3 days, 11 hours ago
[PATCH net-next v5 2/9] dpll: zl3073x: Associate pin with fwnode handle
Posted by Ivan Vecera 3 days, 11 hours ago
Associate the registered DPLL pin with its firmware node by calling
dpll_pin_fwnode_set().

This links the created pin object to its corresponding DT/ACPI node
in the DPLL core. Consequently, this enables consumer drivers (such as
network drivers) to locate and request this specific pin using the
fwnode_dpll_pin_find() helper.

Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
---
 drivers/dpll/zl3073x/dpll.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/dpll/zl3073x/dpll.c b/drivers/dpll/zl3073x/dpll.c
index 7d8ed948b9706..9eed21088adac 100644
--- a/drivers/dpll/zl3073x/dpll.c
+++ b/drivers/dpll/zl3073x/dpll.c
@@ -1485,6 +1485,7 @@ zl3073x_dpll_pin_register(struct zl3073x_dpll_pin *pin, u32 index)
 		rc = PTR_ERR(pin->dpll_pin);
 		goto err_pin_get;
 	}
+	dpll_pin_fwnode_set(pin->dpll_pin, props->fwnode);
 
 	if (zl3073x_dpll_is_input_pin(pin))
 		ops = &zl3073x_dpll_input_pin_ops;
-- 
2.52.0
RE: [Intel-wired-lan] [PATCH net-next v5 2/9] dpll: zl3073x: Associate pin with fwnode handle
Posted by Kubalewski, Arkadiusz 1 day, 19 hours ago
>From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of
>Ivan Vecera
>Sent: Tuesday, February 3, 2026 6:40 PM
>
>Associate the registered DPLL pin with its firmware node by calling
>dpll_pin_fwnode_set().
>
>This links the created pin object to its corresponding DT/ACPI node
>in the DPLL core. Consequently, this enables consumer drivers (such as
>network drivers) to locate and request this specific pin using the
>fwnode_dpll_pin_find() helper.
>
>Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>

LGTM,
Reviewed-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>

>Signed-off-by: Ivan Vecera <ivecera@redhat.com>
>---
> drivers/dpll/zl3073x/dpll.c | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/drivers/dpll/zl3073x/dpll.c b/drivers/dpll/zl3073x/dpll.c
>index 7d8ed948b9706..9eed21088adac 100644
>--- a/drivers/dpll/zl3073x/dpll.c
>+++ b/drivers/dpll/zl3073x/dpll.c
>@@ -1485,6 +1485,7 @@ zl3073x_dpll_pin_register(struct zl3073x_dpll_pin
>*pin, u32 index)
> 		rc = PTR_ERR(pin->dpll_pin);
> 		goto err_pin_get;
> 	}
>+	dpll_pin_fwnode_set(pin->dpll_pin, props->fwnode);
>
> 	if (zl3073x_dpll_is_input_pin(pin))
> 		ops = &zl3073x_dpll_input_pin_ops;
>--
>2.52.0