]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drivers: Add support for DPLL reference count tracking
authorIvan Vecera <ivecera@redhat.com>
Tue, 3 Feb 2026 17:40:01 +0000 (18:40 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 5 Feb 2026 14:57:46 +0000 (15:57 +0100)
commit085ca5d2017116ce3102eafa760ee8eb91fb1eeb
treeee3cd2f925851e2c8f90b016eb25017415fb1906
parent3c0da1030c58b0f1ee4d8ef4722466f8ce734a53
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.

Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Reviewed-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Link: https://patch.msgid.link/20260203174002.705176-9-ivecera@redhat.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/dpll/zl3073x/dpll.c
drivers/dpll/zl3073x/dpll.h
drivers/net/ethernet/intel/ice/ice_dpll.c
drivers/net/ethernet/intel/ice/ice_dpll.h
drivers/net/ethernet/mellanox/mlx5/core/dpll.c
drivers/ptp/ptp_ocp.c