mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-23 04:17:45 +04:00
The LAG code still uses raw switch register accessors despite the regmap already available in the switch private data. Replace direct register accesses with regmap operations through priv->map. Pass priv to the local group, local port and table refresh callbacks, updating their declarations and callers accordingly. Use regmap_write_bits() to preserve unconditional masked writes and include all set bits in the mask to retain sw_w32_mask() semantics. Convert refresh polling to regmap_read_poll_timeout() while keeping the existing polling interval and timeout. Assisted-by: ChatGPT (OpenAI GPT-6 Astra) Link: https://github.com/openwrt/openwrt/pull/25874 Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>