aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/ibm_emac/ibm_emac_debug.c
diff options
context:
space:
mode:
authorIvan Vecera <ivecera@redhat.com>2025-11-13 08:41:02 +0100
committerJakub Kicinski <kuba@kernel.org>2025-11-17 20:23:37 -0800
commit5534a8202d7cf9b2e4557517745583c43662b6a8 (patch)
tree50f3057be241e94416e5b10c8063fb14380f1fdd /drivers/net/ibm_emac/ibm_emac_debug.c
parentdpll: zl3073x: Split ref, out, and synth logic from core (diff)
downloadwireguard-linux-5534a8202d7cf9b2e4557517745583c43662b6a8.tar.xz
wireguard-linux-5534a8202d7cf9b2e4557517745583c43662b6a8.zip
dpll: zl3073x: Cache reference monitor status
Instead of reading the ZL_REG_REF_MON_STATUS register every time the reference status is needed, cache this value in the zl3073x_ref struct. This is achieved by: * Adding a mon_status field to struct zl3073x_ref * Introducing zl3073x_dev_ref_status_update() to read the status for all references into this new cache field * Calling this update function from the periodic work handler * Adding zl3073x_ref_is_status_ok() and zl3073x_dev_ref_is_status_ok() helpers to check the cached value * Refactoring all callers in dpll.c to use the new zl3073x_dev_ref_is_status_ok() helper, removing direct register reads This change consolidates all status register reads into a single periodic function and reduces I/O bus traffic in dpll callbacks. 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-4-ivecera@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ibm_emac/ibm_emac_debug.c')
0 files changed, 0 insertions, 0 deletions