RE: [Intel-wired-lan] [PATCH net-next v3 8/9] drivers: Add support for DPLL reference count tracking
From: Loktionov, Aleksandr
Date: Fri Jan 30 2026 - 12:53:49 EST
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@xxxxxxxxxx> On Behalf
> Of Ivan Vecera
> Sent: Friday, January 30, 2026 5:54 PM
> To: netdev@xxxxxxxxxxxxxxx
> Cc: Lobakin, Aleksander <aleksander.lobakin@xxxxxxxxx>; Andrew Lunn
> <andrew+netdev@xxxxxxx>; Kubalewski, Arkadiusz
> <arkadiusz.kubalewski@xxxxxxxxx>; David S. Miller
> <davem@xxxxxxxxxxxxx>; Eric Dumazet <edumazet@xxxxxxxxxx>; Jakub
> Kicinski <kuba@xxxxxxxxxx>; Jiri Pirko <jiri@xxxxxxxxxxx>; Jonathan
> Lemon <jonathan.lemon@xxxxxxxxx>; Leon Romanovsky <leon@xxxxxxxxxx>;
> Mark Bloch <mbloch@xxxxxxxxxx>; Paolo Abeni <pabeni@xxxxxxxxxx>;
> Prathosh Satish <Prathosh.Satish@xxxxxxxxxxxxx>; Kitszel, Przemyslaw
> <przemyslaw.kitszel@xxxxxxxxx>; Richard Cochran
> <richardcochran@xxxxxxxxx>; Saeed Mahameed <saeedm@xxxxxxxxxx>; Tariq
> Toukan <tariqt@xxxxxxxxxx>; Nguyen, Anthony L
> <anthony.l.nguyen@xxxxxxxxx>; Vadim Fedorenko
> <vadim.fedorenko@xxxxxxxxx>; intel-wired-lan@xxxxxxxxxxxxxxxx; linux-
> kernel@xxxxxxxxxxxxxxx; linux-rdma@xxxxxxxxxxxxxxx
> Subject: [Intel-wired-lan] [PATCH net-next v3 8/9] drivers: Add
> support for DPLL reference count tracking
>
> Update existing DPLL drivers to utilize the DPLL reference count
> tracking infrastructure.
>
> Add dpll_tracker fields to the drivers' internal device and pin
> structures. Pass pointers to these trackers when calling
> dpll_device_get/put() and dpll_pin_get/put().
>
> This allows developers to inspect the specific references held by this
> driver via debugfs when CONFIG_DPLL_REFCNT_TRACKER is enabled, aiding
> in the debugging of resource leaks.
>
> Signed-off-by: Ivan Vecera <ivecera@xxxxxxxxxx>
> ---
> drivers/dpll/zl3073x/dpll.c | 14 ++++++++------
> drivers/dpll/zl3073x/dpll.h | 2 ++
> drivers/net/ethernet/intel/ice/ice_dpll.c | 15 ++++++++-------
> drivers/net/ethernet/intel/ice/ice_dpll.h | 4 ++++
> drivers/net/ethernet/mellanox/mlx5/core/dpll.c | 15 +++++++++------
> drivers/ptp/ptp_ocp.c | 17 ++++++++++-------
> 6 files changed, 41 insertions(+), 26 deletions(-)
>
> diff --git a/drivers/dpll/zl3073x/dpll.c b/drivers/dpll/zl3073x/dpll.c
> index 8788bcab7ec53..a99d143a7acde 100644
> --- a/drivers/dpll/zl3073x/dpll.c
> +++ b/drivers/dpll/zl3073x/dpll.c
> @@ -29,6 +29,7 @@
> * @list: this DPLL pin list entry
...
> --
> 2.52.0
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@xxxxxxxxx>