]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dpll: add frequency monitoring callback ops
authorIvan Vecera <ivecera@redhat.com>
Thu, 2 Apr 2026 18:40:56 +0000 (20:40 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 3 Apr 2026 23:48:01 +0000 (16:48 -0700)
commit15ed91aa84ea7bacef3c24286d5136055b4335a8
tree38e4530667ec7ae173ebcdcfd6959a661e058729
parent3fdea79c09d169b6ea172b8d36232c3773f39973
dpll: add frequency monitoring callback ops

Add new callback operations for a dpll device:
- freq_monitor_get(..) - to obtain current state of frequency monitor
  feature from dpll device,
- freq_monitor_set(..) - to allow feature configuration.

Add new callback operation for a dpll pin:
- measured_freq_get(..) - to obtain the measured frequency in mHz.

Obtain the feature state value using the get callback and provide it to
the user if the device driver implements callbacks. The measured_freq_get
pin callback is only invoked when the frequency monitor is enabled.
The freq_monitor_get device callback is required when measured_freq_get
is provided by the driver.

Execute the set callback upon user requests.

Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Link: https://patch.msgid.link/20260402184057.1890514-3-ivecera@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/dpll/dpll_core.c
drivers/dpll/dpll_netlink.c
include/linux/dpll.h