]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: phy: realtek: demystify PHYSR register location
authorDaniel Golle <daniel@makrotopia.org>
Tue, 13 Jan 2026 03:44:33 +0000 (03:44 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sun, 18 Jan 2026 00:12:16 +0000 (16:12 -0800)
commit46ff862d376cfadf0f9e36a6edce41a003175708
tree072cd721c590b843ca20c72be6fe7da624993d55
parent85f75da86a0adc4798d3675aab3365e721a1dbf5
net: phy: realtek: demystify PHYSR register location

Turns out that register address RTL_VND2_PHYSR (0xa434) maps to
Clause-22 register MII_RESV2. Use that to get rid of yet another magic
number, and rename access macros accordingly.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://patch.msgid.link/6ed246e0aa3ca8038d2fa432d51518959fb89b6b.1768275364.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/realtek/realtek_main.c