]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: mdio: realtek-rtl9300: Add prefix to register field defines
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Wed, 10 Jun 2026 19:41:42 +0000 (21:41 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 13 Jun 2026 00:24:11 +0000 (17:24 -0700)
commit29a540b56e51541b77d323ed4ce1b13dbf7b7872
treee62df7bfa97e00ca3f2f74cb335fef94bf70e820
parenta390863b493e352231ed56ee65fca9c1f2ce1a1c
net: mdio: realtek-rtl9300: Add prefix to register field defines

The current Realtek Otto MDIO driver has some define leftovers without
a SoC prefix. When adding new devices there will be an overlap for some
of them. Sort this out as follows:

- PHY_CTRL_CMD/PHY_CTRL_MMD_DEVAD/PHY_CTRL_MMD_REG are common for all
  series. Leave them as is but move them into a separate block.
- Add RTL9300 prefix to all other defines and adapt the callers.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://patch.msgid.link/20260610194145.4153668-3-markus.stockhausen@gmx.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mdio/mdio-realtek-rtl9300.c