]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dpll: add frequency monitoring to netlink spec
authorIvan Vecera <ivecera@redhat.com>
Thu, 2 Apr 2026 18:40:55 +0000 (20:40 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 3 Apr 2026 23:48:01 +0000 (16:48 -0700)
commit3fdea79c09d169b6ea172b8d36232c3773f39973
tree801bc944c21f97723cc17a0ee23c48f88d8410d6
parent353d8e7989b6babe8fe4ae06272230c7941c3f73
dpll: add frequency monitoring to netlink spec

Add DPLL_A_FREQUENCY_MONITOR device attribute to allow control over
the frequency monitor feature. The attribute uses the existing
dpll_feature_state enum (enable/disable) and is present in both
device-get reply and device-set request.

Add DPLL_A_PIN_MEASURED_FREQUENCY pin attribute to expose the measured
input frequency in millihertz (mHz). The attribute is present in the
pin-get reply. Add DPLL_PIN_MEASURED_FREQUENCY_DIVIDER constant to
allow userspace to extract integer and fractional parts.

Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Link: https://patch.msgid.link/20260402184057.1890514-2-ivecera@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/driver-api/dpll.rst
Documentation/netlink/specs/dpll.yaml
drivers/dpll/dpll_nl.c
include/uapi/linux/dpll.h