]> git.ipfire.org Git - thirdparty/linux.git/commit
dpll: zl3073x: add zl3073x_ref_state_update helper
authorIvan Vecera <ivecera@redhat.com>
Sun, 15 Mar 2026 17:42:20 +0000 (18:42 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Mar 2026 02:05:12 +0000 (19:05 -0700)
commit05ea2ab3b10075e8fcfcd5e283e486df7055de5e
treee1b2da43b05ed1ea367d71a18ac2777de33e3120
parentf327f5a8115e80d954598cf2d5c461873042b7f6
dpll: zl3073x: add zl3073x_ref_state_update helper

Extract the per-reference monitor status HW read into a dedicated
zl3073x_ref_state_update() helper in the ref module. Rename
zl3073x_dev_ref_status_update() to zl3073x_dev_ref_states_update()
and use the new helper in it. Call it from zl3073x_ref_state_fetch()
as well so that mon_status is initialized at device startup. This
keeps direct register access and struct field writes behind the ref
module's interface, consistent with the state management pattern
used for other ref operations.

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Link: https://patch.msgid.link/20260315174224.399074-3-ivecera@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/dpll/zl3073x/core.c
drivers/dpll/zl3073x/ref.c
drivers/dpll/zl3073x/ref.h