]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: eth: simplify MAC_FORCE_MODE_CTRL usage
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Thu, 19 Feb 2026 20:22:58 +0000 (21:22 +0100)
committerRobert Marko <robimarko@gmail.com>
Fri, 20 Feb 2026 21:50:41 +0000 (22:50 +0100)
commitee7ff1e8b09b38e7baaee5224a909d1f2bf84d31
tree9c35275f4222ecdc23f23cb9fbdc6118d4457195
parent2256cfac685f9bc47bde8ef819076c3933593292
realtek: eth: simplify MAC_FORCE_MODE_CTRL usage

The MAC_FORCE_MODE_CTRL register is only used for the CPU port.
No need to repeat the port register calculation for each usage.
Simply point to the cpu port register directly.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22100
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.h