]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dpll: zl3073x: Store raw register values instead of parsed state
authorIvan Vecera <ivecera@redhat.com>
Thu, 13 Nov 2025 07:41:00 +0000 (08:41 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 18 Nov 2025 04:23:37 +0000 (20:23 -0800)
commit58fb88d30b0250f928e1afa0eaa4547770d86229
treeedbb9f6f4cb846eb838cbaef00e3fcc7fd34d4da
parent5b8b343c5c989711ab1388ecc6bd8e5e5669ebe9
dpll: zl3073x: Store raw register values instead of parsed state

The zl3073x_ref, zl3073x_out and zl3073x_synth structures
previously stored state that was parsed from register reads. This
included values like boolean 'enabled' flags, synthesizer selections,
and pre-calculated frequencies.

This commit refactors the state management to store the raw register
values directly in these structures. The various inline helper functions
are updated to parse these raw values on-demand using FIELD_GET.

Reviewed-by: Petr Oros <poros@redhat.com>
Tested-by: Prathosh Satish <Prathosh.Satish@microchip.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Link: https://patch.msgid.link/20251113074105.141379-2-ivecera@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/dpll/zl3073x/core.c
drivers/dpll/zl3073x/core.h