]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dpll: add dpll_device op to set working mode
authorIvan Vecera <ivecera@redhat.com>
Wed, 14 Jan 2026 12:27:25 +0000 (13:27 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 19 Jan 2026 20:04:53 +0000 (12:04 -0800)
commite3f6c65192fe484ab16f0be2b495ceef5ca3b85c
tree43e5d0784b3756d1469fba1f7fc334f1b688c04f
parentb1f99cc8863847676d4a7329ffb668a030150d99
dpll: add dpll_device op to set working mode

Currently, userspace can retrieve the DPLL working mode but cannot
configure it. This prevents changing the device operation, such as
switching from manual to automatic mode and vice versa.

Add a new callback .mode_set() to struct dpll_device_ops. Extend
the netlink policy and device-set command handling to process
the DPLL_A_MODE attribute.  Update the netlink YAML specification
to include the mode attribute in the device-set operation.

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