openwrt/target/linux/realtek
Markus Stockhausen 3ef3fb9db9 realtek: mdio: add phy to port lookup
The Realtek mdio bus operations are based on the port number. As
of now the driver exposes a single bus with a 1:1 mapping between
phy and port. This will change in the future when the driver
exposes multiple busses. This will need a mapping - e.g.

- bus 0, phy 23 -> read/write port 23
- bus 1, phy 0 -> read/write port 24

Provide a rtmdio_phy_to_port() indirection function that will
lookup the port number based on a bus and a phy. For now it
will only run some basic sanity checks and return the given
input address (because of 1:1 mapping).

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22731
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-04-06 11:24:23 +02:00
..
base-files realtek: add support for Datto L8 2026-04-02 22:25:37 +02:00
dts realtek: dts: convert D-Link DGS-1250-28X to PHY_C22() 2026-04-05 11:28:14 +02:00
files-6.12 kernel/realtek: restore files for v6.12 2026-03-29 18:08:20 +02:00
files-6.18 realtek: mdio: add phy to port lookup 2026-04-06 11:24:23 +02:00
image realtek: add support for Datto L8 2026-04-02 22:25:37 +02:00
patches-6.12 realtek: Indicate that RTL8231 LED ops can sleep 2026-04-06 00:03:25 +02:00
patches-6.18 realtek: Indicate that RTL8231 LED ops can sleep 2026-04-06 00:03:25 +02:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x kernel: 6.18: move CONFIG_CRYPTO_LIB_SHA256 to generic 2026-04-06 01:38:41 +02:00
rtl839x kernel: 6.18: move CONFIG_CRYPTO_LIB_SHA256 to generic 2026-04-06 01:38:41 +02:00
rtl930x kernel: 6.18: move CONFIG_CRYPTO_LIB_SHA256 to generic 2026-04-06 01:38:41 +02:00
rtl930x_nand kernel: 6.18: move CONFIG_CRYPTO_LIB_SHA256 to generic 2026-04-06 01:38:41 +02:00
rtl931x kernel: 6.18: move CONFIG_CRYPTO_LIB_SHA256 to generic 2026-04-06 01:38:41 +02:00
rtl931x_nand kernel: 6.18: move CONFIG_CRYPTO_LIB_SHA256 to generic 2026-04-06 01:38:41 +02:00
Makefile realtek: add v6.18 as testing kernel 2026-03-29 18:08:21 +02:00
modules.mk kernel: mfd: Add Hasivo STC8 mfd 2026-03-01 18:47:27 +01:00