]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: l3: reorganize lock access 23979/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sun, 28 Jun 2026 17:25:43 +0000 (19:25 +0200)
committerMarkus Stockhausen <markus.stockhausen@gmx.de>
Mon, 29 Jun 2026 16:17:08 +0000 (18:17 +0200)
commitcc697093b8104029f559fc3258f46556a8066c13
tree1a25d1c8733ecf6c47684632a4b729c08d09a41f
parentefe23afc8b77d83e0239327c3bff34c4ff3fa1a5
realtek: l3: reorganize lock access

The layer 3 code shares the register access lock with the DSA driver.
It is currently unclear to which extent this is really needed. To
avoid permanent access to the DSA private structure reorganize the
locking as follows:

- create a lock pointer in the layer 3 control structure
- link it to the DSA lock during probing
- use the ctrl->lock pointer whenever needed.

Link: https://github.com/openwrt/openwrt/pull/23979
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/l3.c
target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/l3.h