From: Ivan Vecera <ivecera@redhat.com>
To: Jiri Pirko <jiri@resnulli.us>
Cc: Eric Dumazet <edumazet@google.com>,
Tony Nguyen <anthony.l.nguyen@intel.com>,
Rob Herring <robh@kernel.org>, Leon Romanovsky <leon@kernel.org>,
Alexander Lobakin <aleksander.lobakin@intel.com>,
linux-rdma@vger.kernel.org,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>,
intel-wired-lan@lists.osuosl.org,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
devicetree@vger.kernel.org, Conor Dooley <conor+dt@kernel.org>,
Richard Cochran <richardcochran@gmail.com>,
Prathosh Satish <Prathosh.Satish@microchip.com>,
Willem de Bruijn <willemb@google.com>,
Vadim Fedorenko <vadim.fedorenko@linux.dev>,
netdev@vger.kernel.org, Mark Bloch <mbloch@nvidia.com>,
linux-kernel@vger.kernel.org, Tariq Toukan <tariqt@nvidia.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
Stefan Wahren <wahrenst@gmx.net>, Simon Horman <horms@kernel.org>,
Jonathan Lemon <jonathan.lemon@gmail.com>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Saeed Mahameed <saeedm@nvidia.com>,
"David S. Miller" <davem@davemloft.net>
Subject: Re: [Intel-wired-lan] [PATCH RFC net-next 02/13] dpll: Allow registering pin with firmware node
Date: Mon, 15 Dec 2025 14:51:36 +0100 [thread overview]
Message-ID: <eee9be12-603d-4e8e-92f8-e76728974313@redhat.com> (raw)
In-Reply-To: <tawd6udewifjeoymxkfkapxgcgfviixb4zgcjnplycigk5ffws@rdymwt2hknsl>
On 12/15/25 2:08 PM, Jiri Pirko wrote:
> Sun, Dec 14, 2025 at 08:35:01PM +0100, ivecera@redhat.com wrote:
>>
>>
>> On December 12, 2025 12:25:12 PM GMT+01:00, Jiri Pirko <jiri@resnulli.us> wrote:
>>> Thu, Dec 11, 2025 at 08:47:45PM +0100, ivecera@redhat.com wrote:
>>>
>>> [..]
>>>
>>>> @@ -559,7 +563,8 @@ EXPORT_SYMBOL(dpll_netdev_pin_clear);
>>>> */
>>>> struct dpll_pin *
>>>> dpll_pin_get(u64 clock_id, u32 pin_idx, struct module *module,
>>>> - const struct dpll_pin_properties *prop)
>>>> + const struct dpll_pin_properties *prop,
>>>> + struct fwnode_handle *fwnode)
>>>> {
>>>> struct dpll_pin *pos, *ret = NULL;
>>>> unsigned long i;
>>>> @@ -568,14 +573,15 @@ dpll_pin_get(u64 clock_id, u32 pin_idx, struct module *module,
>>>> xa_for_each(&dpll_pin_xa, i, pos) {
>>>> if (pos->clock_id == clock_id &&
>>>> pos->pin_idx == pin_idx &&
>>>> - pos->module == module) {
>>>> + pos->module == module &&
>>>> + pos->fwnode == fwnode) {
>>>
>>> Is fwnode part of the key? Doesn't look to me like that. Then you can
>>> have a simple helper to set fwnode on struct dpll_pin *, and leave
>>> dpll_pin_get() out of this, no?
>>
>> IMHO yes, because particular fwnode identifies exact dpll pin, so
>> I think it should be a part of the key.
>
> The key items serve for userspace identification purposes as well. For
> that, fwnode is non-sense.
> fwnode identifies exact pin, that is nice. But is it the only
> differentiator among other key items? I don't expect so.
From this point of view, not. I will not touch dpll_pin_get() and rather
use new helper like dpll_pin_fwnode_set(), ok?
Thanks,
Ivan
WARNING: multiple messages have this Message-ID (diff)
From: Ivan Vecera <ivecera@redhat.com>
To: Jiri Pirko <jiri@resnulli.us>
Cc: netdev@vger.kernel.org, Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Vadim Fedorenko <vadim.fedorenko@linux.dev>,
Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>,
Grzegorz Nitka <grzegorz.nitka@intel.com>,
Petr Oros <poros@redhat.com>,
Michal Schmidt <mschmidt@redhat.com>,
Prathosh Satish <Prathosh.Satish@microchip.com>,
Tony Nguyen <anthony.l.nguyen@intel.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Saeed Mahameed <saeedm@nvidia.com>,
Leon Romanovsky <leon@kernel.org>,
Tariq Toukan <tariqt@nvidia.com>, Mark Bloch <mbloch@nvidia.com>,
Richard Cochran <richardcochran@gmail.com>,
Jonathan Lemon <jonathan.lemon@gmail.com>,
Simon Horman <horms@kernel.org>,
Alexander Lobakin <aleksander.lobakin@intel.com>,
Willem de Bruijn <willemb@google.com>,
Stefan Wahren <wahrenst@gmx.net>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
intel-wired-lan@lists.osuosl.org, linux-rdma@vger.kernel.org
Subject: Re: [PATCH RFC net-next 02/13] dpll: Allow registering pin with firmware node
Date: Mon, 15 Dec 2025 14:51:36 +0100 [thread overview]
Message-ID: <eee9be12-603d-4e8e-92f8-e76728974313@redhat.com> (raw)
In-Reply-To: <tawd6udewifjeoymxkfkapxgcgfviixb4zgcjnplycigk5ffws@rdymwt2hknsl>
On 12/15/25 2:08 PM, Jiri Pirko wrote:
> Sun, Dec 14, 2025 at 08:35:01PM +0100, ivecera@redhat.com wrote:
>>
>>
>> On December 12, 2025 12:25:12 PM GMT+01:00, Jiri Pirko <jiri@resnulli.us> wrote:
>>> Thu, Dec 11, 2025 at 08:47:45PM +0100, ivecera@redhat.com wrote:
>>>
>>> [..]
>>>
>>>> @@ -559,7 +563,8 @@ EXPORT_SYMBOL(dpll_netdev_pin_clear);
>>>> */
>>>> struct dpll_pin *
>>>> dpll_pin_get(u64 clock_id, u32 pin_idx, struct module *module,
>>>> - const struct dpll_pin_properties *prop)
>>>> + const struct dpll_pin_properties *prop,
>>>> + struct fwnode_handle *fwnode)
>>>> {
>>>> struct dpll_pin *pos, *ret = NULL;
>>>> unsigned long i;
>>>> @@ -568,14 +573,15 @@ dpll_pin_get(u64 clock_id, u32 pin_idx, struct module *module,
>>>> xa_for_each(&dpll_pin_xa, i, pos) {
>>>> if (pos->clock_id == clock_id &&
>>>> pos->pin_idx == pin_idx &&
>>>> - pos->module == module) {
>>>> + pos->module == module &&
>>>> + pos->fwnode == fwnode) {
>>>
>>> Is fwnode part of the key? Doesn't look to me like that. Then you can
>>> have a simple helper to set fwnode on struct dpll_pin *, and leave
>>> dpll_pin_get() out of this, no?
>>
>> IMHO yes, because particular fwnode identifies exact dpll pin, so
>> I think it should be a part of the key.
>
> The key items serve for userspace identification purposes as well. For
> that, fwnode is non-sense.
> fwnode identifies exact pin, that is nice. But is it the only
> differentiator among other key items? I don't expect so.
From this point of view, not. I will not touch dpll_pin_get() and rather
use new helper like dpll_pin_fwnode_set(), ok?
Thanks,
Ivan
next prev parent reply other threads:[~2025-12-15 13:52 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-11 19:47 [Intel-wired-lan] [PATCH RFC net-next 00/13] dpll: Core improvements and ice E825-C SyncE support Ivan Vecera
2025-12-11 19:47 ` Ivan Vecera
2025-12-11 19:47 ` [Intel-wired-lan] [PATCH RFC net-next 01/13] dt-bindings: net: ethernet-controller: Add DPLL pin properties Ivan Vecera
2025-12-11 19:47 ` Ivan Vecera
2025-12-11 19:56 ` [Intel-wired-lan] " Andrew Lunn
2025-12-11 19:56 ` Andrew Lunn
2025-12-14 20:41 ` [Intel-wired-lan] " Ivan Vecera
2025-12-14 20:41 ` Ivan Vecera
2025-12-17 0:49 ` [Intel-wired-lan] " Rob Herring
2025-12-17 0:49 ` Rob Herring
2026-01-05 16:23 ` [Intel-wired-lan] " Ivan Vecera
2026-01-05 16:23 ` Ivan Vecera
2026-01-07 15:15 ` [Intel-wired-lan] " Rob Herring
2026-01-07 15:15 ` Rob Herring
2026-01-07 16:23 ` [Intel-wired-lan] " Ivan Vecera
2026-01-07 16:23 ` Ivan Vecera
2026-01-07 17:31 ` [Intel-wired-lan] " Andrew Lunn
2026-01-07 17:31 ` Andrew Lunn
2026-01-07 19:18 ` [Intel-wired-lan] " Ivan Vecera
2026-01-07 19:18 ` Ivan Vecera
2025-12-11 19:47 ` [Intel-wired-lan] [PATCH RFC net-next 02/13] dpll: Allow registering pin with firmware node Ivan Vecera
2025-12-11 19:47 ` Ivan Vecera
2025-12-12 11:25 ` [Intel-wired-lan] " Jiri Pirko
2025-12-12 11:25 ` Jiri Pirko
2025-12-14 19:35 ` [Intel-wired-lan] " Ivan Vecera
2025-12-14 19:35 ` Ivan Vecera
2025-12-15 13:08 ` [Intel-wired-lan] " Jiri Pirko
2025-12-15 13:08 ` Jiri Pirko
2025-12-15 13:51 ` Ivan Vecera [this message]
2025-12-15 13:51 ` Ivan Vecera
2025-12-15 14:09 ` [Intel-wired-lan] " Jiri Pirko
2025-12-15 14:09 ` Jiri Pirko
2025-12-11 19:47 ` [Intel-wired-lan] [PATCH RFC net-next 03/13] net: eth: Add helpers to find DPLL pin " Ivan Vecera
2025-12-11 19:47 ` Ivan Vecera
2025-12-11 19:47 ` [Intel-wired-lan] [PATCH RFC net-next 04/13] dpll: zl3073x: register pins with fwnode handle Ivan Vecera
2025-12-11 19:47 ` Ivan Vecera
2025-12-11 19:47 ` [Intel-wired-lan] [PATCH RFC net-next 05/13] dpll: Add notifier chain for dpll events Ivan Vecera
2025-12-11 19:47 ` Ivan Vecera
2025-12-11 19:47 ` [Intel-wired-lan] [PATCH RFC net-next 06/13] dpll: Support dynamic pin index allocation Ivan Vecera
2025-12-11 19:47 ` Ivan Vecera
2025-12-15 14:10 ` [Intel-wired-lan] " Przemek Kitszel
2025-12-15 14:10 ` Przemek Kitszel
2025-12-15 14:43 ` [Intel-wired-lan] " Ivan Vecera
2025-12-15 14:43 ` Ivan Vecera
2025-12-11 19:47 ` [Intel-wired-lan] [PATCH RFC net-next 07/13] dpll: zl3073x: Add support for mux pin type Ivan Vecera
2025-12-11 19:47 ` Ivan Vecera
2025-12-11 19:47 ` [Intel-wired-lan] [PATCH RFC net-next 08/13] dpll: Enhance and consolidate reference counting logic Ivan Vecera
2025-12-11 19:47 ` Ivan Vecera
2025-12-11 19:47 ` [Intel-wired-lan] [PATCH RFC net-next 09/13] dpll: Prevent duplicate registrations Ivan Vecera
2025-12-11 19:47 ` Ivan Vecera
2025-12-11 19:47 ` [Intel-wired-lan] [PATCH RFC net-next 10/13] dpll: Add reference count tracking support Ivan Vecera
2025-12-11 19:47 ` Ivan Vecera
2025-12-11 23:18 ` [Intel-wired-lan] " kernel test robot
2025-12-14 22:53 ` kernel test robot
2025-12-15 2:28 ` kernel test robot
2025-12-11 19:47 ` [Intel-wired-lan] [PATCH RFC net-next 11/13] dpll: zl3073x: Enable reference count tracking Ivan Vecera
2025-12-11 19:47 ` Ivan Vecera
2025-12-12 0:25 ` [Intel-wired-lan] " kernel test robot
2025-12-12 11:11 ` Jiri Pirko
2025-12-12 11:11 ` Jiri Pirko
2025-12-11 19:47 ` [Intel-wired-lan] [PATCH RFC net-next 12/13] ice: dpll: " Ivan Vecera
2025-12-11 19:47 ` Ivan Vecera
2025-12-11 19:47 ` [Intel-wired-lan] [PATCH RFC net-next 13/13] ice: dpll: Support E825-C SyncE and dynamic pin discovery Ivan Vecera
2025-12-11 19:47 ` Ivan Vecera
2025-12-12 10:20 ` [Intel-wired-lan] " Loktionov, Aleksandr
2025-12-12 10:20 ` Loktionov, Aleksandr
2025-12-14 19:30 ` Ivan Vecera
2025-12-14 19:30 ` Ivan Vecera
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=eee9be12-603d-4e8e-92f8-e76728974313@redhat.com \
--to=ivecera@redhat.com \
--cc=Prathosh.Satish@microchip.com \
--cc=aleksander.lobakin@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=arkadiusz.kubalewski@intel.com \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jiri@resnulli.us \
--cc=jonathan.lemon@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=mbloch@nvidia.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=richardcochran@gmail.com \
--cc=robh@kernel.org \
--cc=saeedm@nvidia.com \
--cc=tariqt@nvidia.com \
--cc=vadim.fedorenko@linux.dev \
--cc=wahrenst@gmx.net \
--cc=willemb@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.